Neutron Link Mapping

You can configure the topology entries on Neutron according to the physical topology.

The following console script can be used for configuring the topology entries on Neutron according to the physical topology. These commands provide mapping of host, NIC, provider-network to switch, port, lag. If the lag or po is not created on EFA, then the –po-name should be left empty.
efa-link-mapping add --host Openstack115 --nic eth1 --pn default  --switch 10.24.14.133 --port 0/1 --po-name lag_1 
efa-link-mapping add --host Openstack115 --nic eth2 --pn default --switch 10.24.14.134 --port 0/1 --po-name lag_1 
efa-link-mapping add --host Openstack116 --nic eth1 --pn PFPT_LAG --switch 10.24.14.135 --port 0/1 --po-name lag_2 
efa-link-mapping add --host Openstack116 --nic eth2 --pn PFPT_LAG --switch 10.24.14.136 --port 0/1 --po-name lag_2 
efa-link-mapping add --host Openstack117 --nic eth1 --pn VFPT_L   --switch 10.24.14.136 --port 0/2
efa-link-mapping add --host DC-GW1                  --pn EXT1     --switch 10.24.14.191 --port 0/1 --po-name lag_4 
efa-link-mapping add --host DC-GW1                  --pn EXT1     --switch 10.24.14.192 --port 0/1 --po-name lag_4  
The same information can be provided as part of the startup file which is specified in ml2_conf_extreme.ini.
opensuse@Openstack114:~$ cat /home/opensuse/link.csv
Openstack115,eth1,default,10.24.14.133,0/1,lag_1
Openstack115,eth2,default,10.24.14.134,0/1,lag_1
Openstack116,eth1,PFPT_LAG,10.24.14.135,0/1,lag_2
Openstack116,eth2,PFPT_LAG,10.24.14.136,0/1,lag_2
Openstack117,eth1,VFPT_L10.24.14.136,0/1
DC-GW1, ,EXT1,10.24.14.191,0/1,lag_4
DC-GW1, ,EXT1,10.24.14.192,0/1,lag_4
Note

Note

The number of comma delimiters used in each line within the CSV file must be the same.
This information can be provided through a –file option in the command.
efa-link-mapping add   --file /home/opensuse/link.csv
Fields Description
Host

Host name of the compute node (as seen in OpenStack server list).

In case of a DC Gateway (border leaf), this will be a label like DC-GW1.

nic

NIC on the compute node.

In case of a DC Gateway (border leaf), this is empty.

pn Neutron physnet that is being mapped
switch IP address of the physical switch
Port

Switch interface that is connected to the NIC.

In case of a DC Gateway (border leaf), this will be the switch interface that is connected to an external DC Edge.

po-name Port channel name that was already created using the tenant command.

Only VLAN-based Physnet entries should be added to this table.

Note

Note

The same behavior can be achieved using the openstack network efa-topology-link-map command.

Topology Mapping CLI Commands

The following commands are available for showing and manipulating topology mapping:
  • openstack network efa-topology-link-map list
  • openstack network efa-topology-link-map create
  • openstack network efa-topology-link-map delete
For more information, see openstack network efa-topology-link-map list and the related commands.