For NSX Data Center for vSphere deployments, you can restrict the router types available to tenants and specify a default router type.

Note:

Administrators can create routers of any type.

Procedure

  1. Log in to the OpenStack Management Server as viouser.
  2. If your deployment is not using a custom.yml file, copy the template custom.yml file to the /opt/vmware/vio/custom directory.
    sudo mkdir -p /opt/vmware/vio/custom
    sudo cp /var/lib/vio/ansible/custom/custom.yml.sample /opt/vmware/vio/custom/custom.yml
  3. Open the /opt/vmware/vio/custom/custom.yml file in a text editor.
  4. Uncomment the nsxv_tenant_router_types parameter and specify the router types that you want to make available to tenants.

    You can enter exclusive, shared, distributed, or any combination separated by commas (,).

    The values of the nsxv_tenant_router_types parameter are used in order as the default router types.

  5. Deploy the updated configuration.
    sudo viocli deployment configure

    Deploying the configuration briefly interrupts OpenStack services.

Results

Tenants can create routers only of the types listed. If a tenant creates a router without specifying a type, the first available type is used by default.