The vmware_nsx.shell.admin.plugins.nsxv3.resources.ports Module

class vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.PortsPlugin

Bases: neutron.db.db_base_plugin_v2.NeutronDbPluginV2, neutron.db.portsecurity_db.PortSecurityDbMixin, neutron.db.allowedaddresspairs_db.AllowedAddressPairsMixin

vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.get_network_nsx_id(session, neutron_id)
vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.get_vm_network_device(vm_mng, vm_moref, mac_address)

Return the network device with MAC ‘mac_address’.

This code was inspired by Nova vif.get_network_device

vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.migrate_compute_ports_vms(resource, event, trigger, **kwargs)

Update the VMs ports on the backend after migrating nsx-v -> nsx-v3

After using api_replay to migrate the neutron data from NSX-V to NSX-T we need to update the VM ports to use OpaqueNetwork instead of DistributedVirtualPortgroup

vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.migrate_exclude_ports(resource, event, trigger, **kwargs)
vmware_nsx.shell.admin.plugins.nsxv3.resources.ports.tag_default_ports(resource, event, trigger, **kwargs)

This Page