summaryrefslogtreecommitdiffstats
path: root/fuel/prototypes/auto-deploy/documentation/5-dea-api.txt
blob: d5c6f5c4e1580b588041fd2f0eb3930833aee1e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
The structure is being reworked. This page describes the DEA interface.

The DEA API is internal to the deployer, but documented here for information.

*** DEA API definition version 1.1 ***

# Get the DEA API version supported by this adapter
dea_getApiVersion ()

# Node numbering is sequential.
# Get the role for this node
# Argument 1: node id
dea_getNodeRole()

# Get IP address of Fuel master
dea_getFuelIp()

# Get netmask Fuel master
dea_getFuelNetmask()

# Get gateway address of Fuel master
dea_getFuelGateway()

# Get gateway address of Fuel master
dea_getFuelHostname()

# Get DNS address of Fuel master
dea_getFuelDns()

# Convert a normal MAC to a Fuel short mac for --node-id
dea_convertMacToShortMac()

# Get property from DEA file
# Argument 1: search path, as e.g. "fuel ADMIN_NETWORK ipaddress"
dea_getProperty()

# Convert DHA node id to Fuel cluster node id
# Look for lowest Fuel node number, this will be DHA node 1
# Argument: node id
dea_getClusterNodeId()

# Entry point for dea functions
# Typically do not call "dea_node_zeroMBR" but "dea node_ZeroMBR"
# Before calling dea, the adapter file must gave been sourced with
# the DEA file name as argument
dea()