You can configure the topology entries on Neutron according to the physical topology.
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
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
The number of comma delimiters used in each line within the CSV file must be the same.–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
The same behavior can be achieved using the openstack network
efa-topology-link-map
command.
openstack network efa-topology-link-map list
openstack network efa-topology-link-map create
openstack network efa-topology-link-map delete