You can create a Layer 2 bridge in NSX Data Center for vSphere through a port group.

Prerequisites

Create a port group and tag it with the ID of the VLAN to which you want to connect your compute nodes.

Procedure

  1. Log in to the Integrated OpenStack Manager as the root user.
    ssh root@mgmt-server-ip
  2. Open the toolbox and set the password for the admin account.
    toolbox
    export OS_PASSWORD=admin-account-password
  3. Create a logical Layer 2 gateway, specifying the managed object identifier (MOID) of the port group as the interface name.
    neutron l2-gateway-create gateway-name --device name=temp,interface_names="portgroup-moid"

    NSX Data Center for vSphere creates a dedicated distributed logical router (DLR) from the backup edge pool. The device name value is ignored, and the object is automatically assigned a name in the format "L2 bridging-gateway-id".

  4. Create the logical Layer 2 gateway connection using the gateway created in the previous step.
    neutron l2-gateway-connection-create gateway-name network-name --default-segmentation-id=vlan-id

Results

VXLAN compute nodes can now access the specified VLAN.