Neutron REST Endpoints
EFA Topology Neutron Extension
GET
/v2.0/efa_topologies
Shows details of the topology
Normal response codes: 200
Table 1. Response parameters
Name |
IN |
Type |
Description |
id |
Body |
UUID |
Topology ID |
host |
Body |
String |
Host name of the compute |
nic |
Body |
String |
NIC on the compute |
provider_network |
Body |
String |
Provide network to which the NIC belongs |
switch |
Body |
String |
IP address of the switch to which the NIC is connected |
Port |
Body |
String |
Switch interface to which the NIC is connected |
po_name |
Body |
String |
LAG as created on EFA for the NICs |
DELETE
/v2.0/efa_topologies{id}
Deletes a toology link from its asscociate resources
Table 2. Request parameters
Name |
IN |
Type |
Description |
id |
Path |
UUID |
Topology ID |
POST
/v2.0/efa_topologies
Create a link on the efa_topology object
Table 3. Request parameters
Name |
IN |
Type |
Description |
host |
Body |
String |
Host name of the compute |
nic |
Body |
String |
NIC on the compute |
provider_network |
Body |
String |
Provide network to which the NIC belongs |
switch |
Body |
String |
IP address of the switch to which the NIC is connected |
Port |
Body |
String |
Switch interface to which the NIC is connected |
po_name |
Body |
String |
LAG as created on EFA for the NICs |
Example
body = {‘efa_topology‘;:
{ 'host': 'Openstack115',
'nic': 'eth0'
'switch': "10.24.35.225',
'provider_network': "PFPT_LAG',
'port': '0/1',
'po_name': 'lag_1',
}}
EFA Border-Leaf Pair Mapping
GET
/v2.0/efa_bl_pairs
Shows details of the EFA border leaf pair
Normal response codes: 200
Table 4. Response parameters
Name |
IN |
Type |
Description |
id |
Body |
UUID |
Border-leaf pair ID |
name |
Body |
String |
Name of the border-leaf pair |
Switch_ips |
Body |
String |
Comma separated border-leaf ipaddress |
DELETE
/v2.0/efa_bl_pairs{id}
Deletes border-leaf pair by ID
Table 5. Request parameters
Name |
IN |
Type |
Description |
id |
Path |
UUID |
Border-leaf pair ID |
POST
/v2.0/efa_bl_pairs
Creates a border-leaf pair object which will be used for L3 configurations
Table 6. Request parameters
Name |
IN |
Type |
Description |
name |
Body |
String |
Name of the border-leaf pair |
Switch_ips |
Body |
String |
Comma separated border-leaf ipaddress |
Example
body = {‘efa_bl_pair‘: {
'name': ‘BLPAIR1',
'switch_ips': "10.24.35.225,10.24.35.224',
}}