Bases: neutron.db.allowedaddresspairs_db.AllowedAddressPairsMixin, neutron.db.agents_db.AgentDbMixin, vmware_nsx.plugins.common.plugin.NsxPluginBase, vmware_nsx.db.routertype.RouterType_mixin, neutron.db.external_net_db.External_net_db_mixin, neutron.db.extraroute_db.ExtraRoute_db_mixin, neutron.db.extradhcpopt_db.ExtraDhcpOptMixin, neutron.db.availability_zone.router.RouterAvailabilityZoneMixin, neutron.db.l3_gwmode_db.L3_NAT_db_mixin, vmware_nsx.db.nsx_portbindings_db.NsxPortBindingMixin, neutron.db.portsecurity_db.PortSecurityDbMixin, vmware_nsx.db.extended_security_group_rule.ExtendedSecurityGroupRuleMixin, neutron.db.securitygroups_db.SecurityGroupDbMixin, vmware_nsx.db.extended_security_group.ExtendedSecurityGroupPropertiesMixin, vmware_nsx.db.vnic_index_db.VnicIndexDbMixin, neutron.db.dns_db.DNSDbMixin, vmware_nsx.extensions.nsxpolicy.NsxPolicyPluginBase, neutron.db.vlantransparent_db.Vlantransparent_db_mixin, vmware_nsx.common.availability_zones.NSXAvailabilityZonesPluginCommon, vmware_nsx.db.maclearning.MacLearningDbMixin, vmware_nsx.extensions.housekeeper.Housekeeper
-
static add_flavor_id(router_res, router_db)
-
add_router_interface(context, router_id, interface_info)
-
add_vms_to_service_insertion(sg_id)
-
base_create_port(*args, **kwargs)
-
base_create_subnet(context, subnet)
-
base_delete_subnet(context, subnet_id)
-
create_floatingip(context, floatingip)
-
create_network(context, network)
-
create_port(context, port)
-
create_router(context, router, allow_metadata=True)
-
create_security_group(context, security_group, default_sg=False)
Create a security group.
-
create_security_group_rule(context, security_group_rule, create_base=True)
Create a single security group rule.
-
create_security_group_rule_bulk(context, security_group_rules, create_base=True)
Create security group rules.
| Parameters: | security_group_rules – list of rules to create |
-
create_subnet(context, subnet)
Create subnet on nsx_v provider network.
If the subnet is created with DHCP enabled, and the network which
the subnet is attached is not bound to an DHCP Edge, nsx_v will
create the Edge and make sure the network is bound to the Edge
-
create_subnet_bulk(context, subnets)
-
delete_floatingip(context, id)
-
delete_network(context, id)
-
delete_port(context, id, l3_port_check=True, nw_gw_port_check=True, force_delete_dhcp=False, allow_delete_internal=False)
-
delete_router(context, id)
-
delete_security_group(context, id, delete_base=True)
Delete a security group.
-
delete_security_group_rule(context, id, delete_base=True)
Delete a security group rule.
-
delete_subnet(context, id)
-
disassociate_floatingips(context, port_id)
-
get_availability_zone_name_by_edge(context, edge_id)
-
get_flavor_metainfo(context, flavor_id)
Retrieve metainfo from first profile of specified flavor
-
get_metadata_proxy_handler(az_name)
-
get_network(context, id, fields=None)
-
get_network_availability_zones(net_db)
-
get_networks(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)
-
get_nsx_policies(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)
-
get_nsx_policy(context, id, fields=None)
-
get_port(context, id, fields=None)
-
get_ports(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)
-
get_router(context, id, fields=None)
-
get_router_availability_zones(router)
Return availability zones which a router belongs to.
Return only the actual az the router edge is deployed on.
If there is no edge - the availability zones list is empty.
-
get_subnet(context, id, fields=None)
-
get_subnets(context, filters=None, fields=None, sorts=None, limit=None, marker=None, page_reverse=False)
-
init_availability_zones()
-
init_complete(resource, event, trigger, payload=None)
-
is_dhcp_metadata(context, subnet_id)
-
static is_tvd_plugin()
-
static plugin_type()
-
recalculate_fw_rules_for_router(context, router, subnets)
Recalculate router fw rules for specific subnets.
Invoked when subnetpool address scope changes.
-
recalculate_snat_rules_for_router(context, router, subnets)
Recalculate router snat rules for specific subnets.
Invoked when subnetpool address scope changes.
-
remove_router_interface(context, router_id, interface_info)
-
setup_dhcp_edge_fw_rules(context, plugin, router_id)
-
start_rpc_listeners()
-
supported_extension_aliases = ['agent', 'allowed-address-pairs', 'address-scope', 'binding', 'dns-search-domain', 'dvr', 'ext-gw-mode', 'multi-provider', 'port-security', 'provider', 'quotas', 'external-net', 'extra_dhcp_opt', 'extraroute', 'router', 'security-group', 'secgroup-rule-local-ip-prefix', 'security-group-logging', 'nsxv-router-type', 'nsxv-router-size', 'vnic-index', 'advanced-service-providers', 'subnet_allocation', 'availability_zone', 'network_availability_zone', 'router_availability_zone', 'l3-flavors', 'flavors', 'dhcp-mtu', 'mac-learning', 'housekeeper', 'port-security-groups-filtering']
-
update_floatingip(context, id, floatingip)
-
update_network(context, id, network)
-
update_port(context, id, port)
-
update_router(context, router_id, router)
-
update_router_firewall(context, router_id, router_db, fwaas_rules=None)
Recreate all rules in the router edge firewall
router_db is the neutron router structure
router_id is the id of the actual router that will be updated on
the NSX (in case of distributed router it can be plr or tlr)
if fwaas_rules is not none - this router is attached to a firewall
-
update_security_group(context, id, security_group)
-
update_subnet(context, id, subnet)
-
validate_availability_zones(context, resource_type, availability_zones, force=False)
Verify that the availability zones exist, and only 1 hint
was set.