Note
All network and server connection settings and mappings can be saved to csv files for bulk configuration using the startup file option in the ml2_conf_extreme.ini file.# cd efa
# efa-pn-mapping add --host 10.24.51.115 --nic eth1 --provider-network physnet1 # efa-pn-mapping add --host 10.24.51.115 --nic eth2 --provider-network physnet1 # efa-pn-mapping add --host 10.24.51.116 --nic eth1 --provider-network physnet1 # efa-pn-mapping add --host 10.24.51.116 --nic eth2 -–provider-network physnet1 ubuntu@Openstack114:~$ cat /home/ubuntu/pn.csv 10.24.51.115,physnet1,eth1 10.24.51.115,physnet1,eth2 10.24.51.116,physnet1,eth1 10.24.51.116,physnet1,eth2 ubuntu@Openstack114:~$ efa-pn-mapping list +--------------+-----------------+------+ | Host | ProviderNetwork | Nic | +--------------+-----------------+------+ | 10.24.51.115 | physnet1 | eth1 | | 10.24.51.115 | physnet1 | eth2 | | 10.24.51.116 | physnet1 | eth1 | | 10.24.51.116 | physnet1 | eth2 | +--------------+-----------------+------+
# efa-link-mapping add --host 10.24.51.115 --nic eth1 --switch 10.24.14.133 --port 0/1 --po-name lag_1 # efa-link-mapping add --host 10.24.51.115 --nic eth2 --switch 10.24.14.134 --port 0/1 --po-name lag_1 # efa-link-mapping add --host 10.24.51.116 --nic eth1 --switch 10.24.14.135 --port 0/1 --po-name lag_2 # efa-link-mapping add --host 10.24.51.116 --nic eth2 --switch 10.24.14.136 --port 0/1 --po-name lag_2 ubuntu@Openstack114:~$ cat /home/ubuntu/link.csv 10.24.51.115,eth1,10.24.14.133,0/5,lag_1 10.24.51.115,eth2,10.24.14.134,0/6,lag_1 10.24.51.116,eth1,10.24.14.135,0/5,lag_2 10.24.51.116,eth2,10.24.14.136,0/6,lag_2 ubuntu@Openstack114:~$ efa-link-mapping list +--------------+------+--------------+------+---------+ | Host | Nic | Switch | Port | Po-Name | +--------------+------+--------------+------+---------+ | 10.24.51.115 | eno2 | 10.24.14.133 | 0/1 | lag_1 | | 10.24.51.115 | eno3 | 10.24.14.134 | 0/1 | lag_1 | | 10.24.51.116 | eno2 | 10.24.14.135 | 0/1 | lag_2 | | 10.24.51.116 | eno3 | 10.24.14.136 | 0/1 | lag_2 | +--------------+------+--------------+------+---------+