The vmware_nsx.nsxlib.mh.l2gateway Module

vmware_nsx.nsxlib.mh.l2gateway.create_gateway_device(cluster, tenant_id, display_name, neutron_id, tz_uuid, connector_type, connector_ip, client_certificate)
vmware_nsx.nsxlib.mh.l2gateway.create_l2_gw_service(cluster, tenant_id, display_name, devices)

Create a NSX Layer-2 Network Gateway Service.

Parameters:
  • cluster – The target NSX cluster
  • tenant_id – Identifier of the Openstack tenant for which

the gateway service. :param display_name: Descriptive name of this gateway service :param devices: List of transport node uuids (and network interfaces on them) to use for the network gateway service :raise NsxApiException: if there is a problem while communicating with the NSX controller

vmware_nsx.nsxlib.mh.l2gateway.delete_gateway_device(cluster, device_uuid)
vmware_nsx.nsxlib.mh.l2gateway.delete_l2_gw_service(cluster, gateway_id)
vmware_nsx.nsxlib.mh.l2gateway.get_gateway_device_status(cluster, device_uuid)
vmware_nsx.nsxlib.mh.l2gateway.get_gateway_devices_status(cluster, tenant_id=None)
vmware_nsx.nsxlib.mh.l2gateway.get_l2_gw_service(cluster, gateway_id)
vmware_nsx.nsxlib.mh.l2gateway.get_l2_gw_services(cluster, tenant_id=None, fields=None, filters=None)
vmware_nsx.nsxlib.mh.l2gateway.plug_l2_gw_service(cluster, lswitch_id, lport_id, gateway_id, vlan_id=None)

Plug a Layer-2 Gateway Attachment object in a logical port.

vmware_nsx.nsxlib.mh.l2gateway.update_gateway_device(cluster, gateway_id, tenant_id, display_name, neutron_id, tz_uuid, connector_type, connector_ip, client_certificate)
vmware_nsx.nsxlib.mh.l2gateway.update_l2_gw_service(cluster, gateway_id, display_name)