Deploy Neutron in a Single Homed Leaf Network

About this task

This procedure provides steps to deploy Neutron in a single homed leaf network with the following connections:
  • Compute Host Compute-1: Network interface card eth1 connected to switch Leaf-1 (single homed leaf) port 0/1
  • Compute Host Compute-2: Network interface card eth1 connected to switch Leaf-4 (single homed leaf) port 0/1
Click to expand in new window
Compute node connecting to single homed leaf
Note

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.

Procedure

  1. Log in to the network node using SSH and go to the EFA folder.
    # cd efa
  2. Build the topology.
    # sudo efa-pn-mapping add -H compute-1 -p physnet1 -n eth1 
    # sudo efa-pn-mapping add -H compute-2 -p physnet1 -n eth1 
    # sudo efa-link-mapping add -H compute-1 -n eth1 -s leaf-1-ip-address -p 0/1
    # sudo efa-link-mapping add -H compute-2 -n eth1 -s leaf-4-ip-address -p 0/1
    These configurations can be included in pn.csv and link.csv files for bulk topology setup.
  3. Create the Neutron network and subnet.
    # openstack network create net1 --provider-network-type vlan --provider-physical-network physnet1 --provider-segment 30   
    
    # openstack subnet create subnet1 --network net1 --subnet-range 20.0.5.0/24 
  4. Create a Neutron port.
    # openstack port create port0 --network net1
  5. Create a VM.
    # openstack server create --flavor m1.tiny --image cirros-0.3.5-x86_64-disk --nic port-id=port0 --availability-zone compute-1  instance-1