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',
}}