Create an OpenStack Network Using L3 Service Plug-in

About this task

Extreme ML2 plug-in and L3 Service plug-in forward network and VM creation requests to EFA along with details about VLAN allocated by the Type Driver. OpenStack Service on EFA utilizes the End Point Group (EPG) construct of Tenant Services to provision an EPG.

Procedure

  1. Log in to the network node using SSH and go to the EFA folder.
    # cd efa
  2. Create an OpenStack network, GREEN_NETWORK.
    # openstack network create GREEN_NETWORK
  3. Create a subnet, GREEN_SUBNET.
    # openstack subnet create GREEN_SUBNET --network GREEN_NETWORK --subnet-range 10.0.0.0/24 \ --gateway 10.0.0.1
  4. Create a Virtual Machine, VM1 on Compute-1 attached to GREEN_NETWORK:
    # openstack server create --nic net-id=$(neutron net-list | awk '/GREEN_NETWORK/ { print $2}') --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --availability-zone nova:Compute-1VM1
  5. Create a Virtual Machine, VM2 on Compute-2 attached to GREEN_NETWORK:
    # openstack server create --nic net-id=$(neutron net-list | awk '/GREEN_NETWORK/ {print $2}') --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --availability-zone nova:Compute-2VM2
  6. Create a second OpenStack network, RED_NETWORK.
    # openstack network create RED_NETWORK openstack subnet create RED_SUBNET --network RED_NETWORK --subnet-range 9.0.0.0/24 \ --gateway 9.0.0.1
  7. Create a Virtual Machine, VM11 on Compute-1 attached to RED_NETWORK:
    # openstack server create --nic net-id=$(neutron net-list | awk '/RED_NETWORK/ {print $2}') --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --availability-zone nova:Compute-1VM11
  8. Create a Virtual Machine, VM12 on Compute-2 attached to RED_NETWORK:
    # openstack server create --nic net-id=$(neutron net-list | awk '/RED_NETWORK/ {print $2}') --image cirros-0.3.4-x86_64-uec --flavor m1.tiny --availability-zone nova:Compute-2VM12
  9. Create a router, R1 and add both the two networking instances, GREEN_SUBNET and RED_SUBNET as part of the Router.
    # neutron router-create R1
    # neutron router-interface-add R1 GREEN_SUBNET
    # neutron router-interface-add R1 RED_SUBNET