The vmware_nsx.tests.unit.nsx_mh.test_plugin Module

class vmware_nsx.tests.unit.nsx_mh.test_plugin.DHCPOptsTestCase(*args, **kwds)

Bases: neutron.tests.unit.extensions.test_extra_dhcp_opt.TestExtraDhcpOpt, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase

setUp(plugin=None)
test_create_port_with_empty_router_extradhcpopts(*args, **kwargs)
test_create_port_with_extradhcpopts(*args, **kwargs)
test_create_port_with_extradhcpopts_ipv4_opt_version(*args, **kwargs)
test_create_port_with_extradhcpopts_ipv6_opt_version(*args, **kwargs)
test_create_port_with_none_extradhcpopts(*args, **kwargs)
test_update_port_adding_extradhcpopts(*args, **kwargs)
test_update_port_with_additional_extradhcpopt(*args, **kwargs)
test_update_port_with_blank_name_extradhcpopt(*args, **kwargs)
test_update_port_with_blank_router_extradhcpopt(*args, **kwargs)
test_update_port_with_blank_string_extradhcpopt(*args, **kwargs)
test_update_port_with_extradhcpopt_delete(*args, **kwargs)
test_update_port_with_extradhcpopts(*args, **kwargs)
test_update_port_with_extradhcpopts_add_another_ver_opt(*args, **kwargs)
test_update_port_with_extradhcpopts_ipv6_change_value(*args, **kwargs)
test_update_port_with_extradhcpopts_with_same(*args, **kwargs)
test_update_port_without_extradhcpopt_delete(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.ExtGwModeTestCase(*args, **kwds)

Bases: vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase, neutron.tests.unit.extensions.test_l3_ext_gw_mode.ExtGwModeIntTestCase

test_router_create_show_ext_gwinfo_default(*args, **kwargs)
test_router_create_show_ext_gwinfo_with_snat_disabled(*args, **kwargs)
test_router_create_show_ext_gwinfo_with_snat_enabled(*args, **kwargs)
test_router_create_show_no_ext_gwinfo(*args, **kwargs)
test_router_create_with_gwinfo_invalid_ext_ip(*args, **kwargs)
test_router_gateway_set_fail_after_port_create(*args, **kwargs)
test_router_gateway_set_retry(*args, **kwargs)
test_router_update_ext_gwinfo_default(*args, **kwargs)
test_router_update_ext_gwinfo_with_invalid_snat_setting(*args, **kwargs)
test_router_update_ext_gwinfo_with_snat_disabled(*args, **kwargs)
test_router_update_ext_gwinfo_with_snat_enabled(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.L3NatTest(*args, **kwds)

Bases: neutron.tests.unit.extensions.test_l3.L3BaseForIntTests, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase

setUp(plugin='vmware_nsx.plugins.nsx_mh.plugin.NsxPluginV2', ext_mgr=None, service_plugins=None)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.NeutronNsxOutOfSync(*args, **kwds)

Bases: vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase, neutron.tests.unit.extensions.test_l3.L3NatTestCaseMixin, neutron.tests.unit.extensions.test_securitygroup.SecurityGroupsTestCase

setUp()
test_clear_gateway_nat_rule_not_in_nsx(*args, **kwargs)
test_create_port_on_network_not_in_nsx(*args, **kwargs)
test_delete_network_not_in_nsx(*args, **kwargs)
test_delete_port_and_network_not_in_nsx(*args, **kwargs)
test_delete_port_not_in_nsx(*args, **kwargs)
test_delete_router_not_in_nsx(*args, **kwargs)
test_remove_router_interface_duplicate_nat_rules_in_nsx(*args, **kwargs)
test_remove_router_interface_nat_rule_not_in_nsx(*args, **kwargs)
test_remove_router_interface_not_in_nsx(*args, **kwargs)
test_show_network_not_in_nsx(*args, **kwargs)
test_show_port_not_in_nsx(*args, **kwargs)
test_show_router_not_in_nsx(*args, **kwargs)
test_update_port_not_in_nsx(*args, **kwargs)
test_update_router_not_in_nsx(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase(*args, **kwds)

Bases: neutron.tests.unit.db.test_db_base_plugin_v2.NeutronDbPluginV2TestCase

setUp(plugin='vmware_nsx.plugins.nsx_mh.plugin.NsxPluginV2', ext_mgr=None, service_plugins=None)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.SecurityGroupsTestCase(*args, **kwds)

Bases: neutron.tests.unit.extensions.test_securitygroup.SecurityGroupDBTestCase

setUp()
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestBasicGet(*args, **kwds)

Bases: neutron.tests.unit.db.test_db_base_plugin_v2.TestBasicGet, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase

test_single_get_admin(*args, **kwargs)
test_single_get_tenant(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestL3ExtensionManager

Bases: object

get_actions()
get_request_extensions()
get_resources()
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestL3NatTestCase(*args, **kwds)

Bases: vmware_nsx.tests.unit.nsx_mh.test_plugin.L3NatTest, neutron.tests.unit.extensions.test_l3.L3NatDBIntTestCase, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase, vmware_nsx.tests.unit.extensions.test_metadata.MetaDataTestCase

skip_test_router_create_with_gw_info_neutron_fail_does_rollback()
test__notify_subnetpool_address_scope_update(*args, **kwargs)
test_associate_to_dhcp_port_fails(*args, **kwargs)
test_create_floating_non_ext_network_returns_400(*args, **kwargs)
test_create_floatingip_invalid_fixed_ip_address_returns_400(*args, **kwargs)
test_create_floatingip_invalid_fixed_ipv6_address_returns_400(*args, **kwargs)
test_create_floatingip_invalid_floating_network_id_returns_400(*args, **kwargs)
test_create_floatingip_invalid_floating_port_id_returns_400(*args, **kwargs)
test_create_floatingip_ipv6_and_ipv4_network_creates_ipv4(*args, **kwargs)
test_create_floatingip_ipv6_only_network_returns_400(*args, **kwargs)
test_create_floatingip_no_ext_gateway_return_404(*args, **kwargs)
test_create_floatingip_no_public_subnet_returns_400(*args, **kwargs)
test_create_floatingip_non_admin_context_agent_notification(*args, **kwargs)
test_create_floatingip_with_assoc(*args, **kwargs)
test_create_floatingip_with_assoc_to_ipv4_and_ipv6_port(*args, **kwargs)
test_create_floatingip_with_assoc_to_ipv6_subnet(*args, **kwargs)
test_create_floatingip_with_duplicated_specific_ip(*args, **kwargs)
test_create_floatingip_with_multisubnet_id(*args, **kwargs)
test_create_floatingip_with_specific_ip(*args, **kwargs)
test_create_floatingip_with_specific_ip_non_admin(*args, **kwargs)
test_create_floatingip_with_specific_ip_out_of_allocation(*args, **kwargs)
test_create_floatingip_with_specific_ip_out_of_subnet(*args, **kwargs)
test_create_floatingip_with_subnet_and_invalid_fip_address(*args, **kwargs)
test_create_floatingip_with_subnet_id_and_fip_address(*args, **kwargs)
test_create_floatingip_with_subnet_id_non_admin(*args, **kwargs)
test_create_floatingip_with_wrong_subnet_id(*args, **kwargs)
test_create_floatingips_native_quotas(*args, **kwargs)
test_create_l3_ext_network_with_vlan(*args, **kwargs)
test_create_l3_ext_network_without_vlan(*args, **kwargs)
test_create_multiple_floatingips_same_fixed_ip_same_port(*args, **kwargs)

This tests that if multiple API requests arrive to create floating IPs on same external network to same port with one fixed ip, the latter API requests would be blocked at database side.

test_create_non_router_port_device_id_of_other_tenants_router_update(*args, **kwargs)
test_create_router_gateway_fails(*args, **kwargs)
test_create_router_gateway_fails_nested(*args, **kwargs)
test_create_router_gateway_fails_nested_delete_router_failed(*args, **kwargs)
test_create_router_maintenance_returns_503(*args, **kwargs)
test_create_router_name_exceeds_40_chars(*args, **kwargs)
test_create_router_port_with_device_id_of_other_tenants_router(*args, **kwargs)
test_create_routers_native_quotas(*args, **kwargs)
test_delete_ext_net_with_disassociated_floating_ips(*args, **kwargs)
test_delete_port_with_metadata(*args, **kwargs)
test_first_floatingip_associate_notification(*args, **kwargs)
test_floating_ip_direct_port_delete_returns_409(*args, **kwargs)
test_floating_port_status_not_applicable(*args, **kwargs)
test_floatingip_association_on_unowned_router(*args, **kwargs)
test_floatingip_crd_ops(*args, **kwargs)
test_floatingip_create_different_fixed_ip_same_port(*args, **kwargs)

This tests that it is possible to delete a port that has multiple floating ip addresses associated with it (each floating address associated with a unique fixed address).

test_floatingip_delete_router_intf_with_port_id_returns_409(*args, **kwargs)
test_floatingip_delete_router_intf_with_subnet_id_returns_409(*args, **kwargs)
test_floatingip_disassociate(*args, **kwargs)
test_floatingip_disassociate_notification(*args, **kwargs)
test_floatingip_list_with_pagination(*args, **kwargs)
test_floatingip_list_with_pagination_reverse(*args, **kwargs)
test_floatingip_list_with_port_id(*args, **kwargs)
test_floatingip_list_with_sort(*args, **kwargs)
test_floatingip_multi_external_one_internal(*args, **kwargs)
test_floatingip_port_delete(*args, **kwargs)
test_floatingip_same_external_and_internal(*args, **kwargs)
test_floatingip_update(*args, **kwargs)
test_floatingip_update_different_fixed_ip_same_port(*args, **kwargs)
test_floatingip_update_different_port_owner_as_admin(*args, **kwargs)
test_floatingip_update_different_router(*args, **kwargs)
test_floatingip_update_invalid_fixed_ip(*args, **kwargs)
test_floatingip_update_same_fixed_ip_same_port(*args, **kwargs)
test_floatingip_update_subnet_gateway_disabled(*args, **kwargs)
test_floatingip_update_to_same_port_id_twice(*args, **kwargs)
test_floatingip_via_router_interface_returns_201(*args, **kwargs)
test_floatingip_via_router_interface_returns_404(*args, **kwargs)
test_floatingip_with_assoc_fails(*args, **kwargs)
test_floatingip_with_invalid_create_port(*args, **kwargs)
test_janitor_clears_orphaned_floatingip_port(*args, **kwargs)
test_janitor_doesnt_delete_if_fixed_in_interim(*args, **kwargs)
test_janitor_updates_port_device_id(*args, **kwargs)
test_metadata_dhcp_host_route(*args, **kwargs)
test_metadata_network_create_rollback_on_add_rtr_iface_failure(*args, **kwargs)
test_metadata_network_create_rollback_on_create_subnet_failure(*args, **kwargs)
test_metadata_network_remove_rollback_on_failure(*args, **kwargs)
test_metadata_network_removed_with_router_interface_remove(*args, **kwargs)
test_metadata_network_with_update_subnet_dhcp_disable(*args, **kwargs)
test_metadata_network_with_update_subnet_dhcp_enable(*args, **kwargs)
test_metadatata_network_created_with_router_interface_add(*args, **kwargs)
test_network_update_external(*args, **kwargs)
test_network_update_external_failure(*args, **kwargs)
test_router_add_and_remove_gateway(*args, **kwargs)
test_router_add_and_remove_gateway_tenant_ctx(*args, **kwargs)
test_router_add_gateway_dup_subnet1_returns_400(*args, **kwargs)
test_router_add_gateway_dup_subnet2_returns_400(*args, **kwargs)
test_router_add_gateway_invalid_network_returns_400(*args, **kwargs)
test_router_add_gateway_invalid_network_returns_404(*args, **kwargs)
test_router_add_gateway_multiple_subnets_ipv6(*args, **kwargs)

Ensure external gateway set doesn’t add excess IPs on router gw

Setting the gateway of a router to an external network with more than one IPv4 and one IPv6 subnet should only add an address from the first IPv4 subnet, an address from the first IPv6-stateful subnet, and an address from each IPv6-stateless (SLAAC and DHCPv6-stateless) subnet

test_router_add_gateway_net_not_external_returns_400(*args, **kwargs)
test_router_add_gateway_no_subnet(*args, **kwargs)
test_router_add_gateway_no_subnet_forbidden(*args, **kwargs)
test_router_add_gateway_non_existent_network_returns_404(*args, **kwargs)
test_router_add_iface_ipv6_ext_ra_subnet_returns_400(*args, **kwargs)

Test router-interface-add for in-valid ipv6 subnets.

Verify that an appropriate error message is displayed when an IPv6 subnet configured to use an external_router for Router Advertisements (i.e., ipv6_ra_mode is None and ipv6_address_mode is not None) is attempted to associate with a Neutron Router.

test_router_add_interface_bad_values(*args, **kwargs)
test_router_add_interface_by_port_admin_address_out_of_pool(*args, **kwargs)
test_router_add_interface_by_port_cidr_overlapped_with_gateway(*args, **kwargs)
test_router_add_interface_by_port_fails_nested(*args, **kwargs)
test_router_add_interface_by_port_other_tenant_address_in_pool(*args, **kwargs)
test_router_add_interface_by_port_other_tenant_address_out_of_pool(*args, **kwargs)
test_router_add_interface_by_subnet_other_tenant_subnet_returns_400(*args, **kwargs)
test_router_add_interface_cidr_overlapped_with_gateway(*args, **kwargs)
test_router_add_interface_delete_port_after_failure(*args, **kwargs)
test_router_add_interface_dup_port(*args, **kwargs)

This tests that if multiple routers add one port as their interfaces. Only the first router’s interface would be added to this port. All the later requests would return exceptions.

test_router_add_interface_dup_subnet1_returns_400(*args, **kwargs)
test_router_add_interface_dup_subnet2_returns_400(*args, **kwargs)
test_router_add_interface_dupsubnet_returns_400_with_metadata(*args, **kwargs)
test_router_add_interface_empty_port_and_subnet_ids(*args, **kwargs)
test_router_add_interface_ipv6_port_existing_network_returns_400(*args, **kwargs)

Ensure unique IPv6 router ports per network id.

Adding a router port containing one or more IPv6 subnets with the same network id as an existing router port should fail. This is so there is no ambiguity regarding on which port to add an IPv6 subnet when executing router-interface-add with a subnet and no port.

test_router_add_interface_ipv6_subnet(*args, **kwargs)

Test router-interface-add for valid ipv6 subnets.

Verify the valid use-cases of an IPv6 subnet where we are allowed to associate to the Neutron Router are successful.

test_router_add_interface_ipv6_subnet_without_gateway_ip(*args, **kwargs)
test_router_add_interface_multiple_ipv4_subnet_port_returns_400(*args, **kwargs)

Test adding router port with multiple IPv4 subnets fails.

Multiple IPv4 subnets are not allowed on a single router port. Ensure that adding a port with multiple IPv4 subnets to a router fails.

test_router_add_interface_multiple_ipv4_subnets(*args, **kwargs)

Test router-interface-add for multiple ipv4 subnets.

Verify that adding multiple ipv4 subnets from the same network to a router places them all on different router interfaces.

test_router_add_interface_multiple_ipv6_subnet_port(*args, **kwargs)

A port with multiple IPv6 subnets can be added to a router

Create a port with multiple associated IPv6 subnets and attach it to a router. The action should succeed.

test_router_add_interface_multiple_ipv6_subnets_different_net(*args, **kwargs)

Test router-interface-add for ipv6 subnets on different networks.

Verify that adding multiple ipv6 subnets from different networks to a router places them on different router interfaces.

test_router_add_interface_multiple_ipv6_subnets_same_net(*args, **kwargs)

Test router-interface-add for multiple ipv6 subnets on a network.

Verify that adding multiple ipv6 subnets from the same network to a router places them all on the same router interface.

test_router_add_interface_no_data_returns_400(*args, **kwargs)
test_router_add_interface_overlapped_cidr_returns_400(*args, **kwargs)
test_router_add_interface_overlapped_cidr_returns_400_with(*args, **kwargs)
test_router_add_interface_port(*args, **kwargs)
test_router_add_interface_port_bad_tenant_returns_404(*args, **kwargs)
test_router_add_interface_port_removes_security_group(*args, **kwargs)
test_router_add_interface_port_with_metadata_access(*args, **kwargs)
test_router_add_interface_port_without_ips(*args, **kwargs)
test_router_add_interface_subnet(*args, **kwargs)
test_router_add_interface_subnet_with_bad_tenant_returns_404(*args, **kwargs)
test_router_add_interface_subnet_with_metadata_access(*args, **kwargs)
test_router_add_interface_subnet_with_port_from_other_tenant(*args, **kwargs)
test_router_add_interface_with_both_ids_returns_400(*args, **kwargs)
test_router_clear_gateway_callback_failure_returns_409(*args, **kwargs)
test_router_concurrent_delete_upon_subnet_create(*args, **kwargs)
test_router_create(*args, **kwargs)
test_router_create_call_extensions(*args, **kwargs)
test_router_create_distributed_returns_400(*args, **kwargs)
test_router_create_distributed_unspecified(*args, **kwargs)
test_router_create_distributed_with_3_1(*args, **kwargs)
test_router_create_distributed_with_new_nsx_versions(*args, **kwargs)
test_router_create_not_distributed(*args, **kwargs)
test_router_create_nsx_error_returns_500(*args, **kwargs)
test_router_create_on_obsolete_platform(*args, **kwargs)
test_router_create_with_gw_info_nsx_fail_does_rollback(*args, **kwargs)
test_router_create_with_gwinfo(*args, **kwargs)
test_router_create_with_gwinfo_and_l3_ext_net(*args, **kwargs)
test_router_create_with_gwinfo_and_l3_ext_net_with_vlan(*args, **kwargs)
test_router_create_with_gwinfo_ext_ip(*args, **kwargs)
test_router_create_with_gwinfo_ext_ip_non_admin(*args, **kwargs)
test_router_create_with_gwinfo_ext_ip_subnet(*args, **kwargs)
test_router_delete(*args, **kwargs)
test_router_delete_callback(*args, **kwargs)
test_router_delete_dhcpv6_stateless_subnet_inuse_returns_409(*args, **kwargs)
test_router_delete_ipv6_slaac_subnet_inuse_returns_409(*args, **kwargs)
test_router_delete_race_with_interface_add(*args, **kwargs)
test_router_delete_subnet_inuse_returns_409(*args, **kwargs)
test_router_delete_with_floatingip_existed_returns_409(*args, **kwargs)
test_router_delete_with_metadata_access(*args, **kwargs)
test_router_delete_with_port_existed_returns_409(*args, **kwargs)
test_router_delete_with_port_existed_returns_409_with_metadata(*args, **kwargs)
test_router_list(*args, **kwargs)
test_router_list_by_tenant_id(*args, **kwargs)
test_router_list_with_pagination(*args, **kwargs)
test_router_list_with_pagination_reverse(*args, **kwargs)
test_router_list_with_parameters(*args, **kwargs)
test_router_list_with_sort(*args, **kwargs)
test_router_remove_iface_wrong_sub_returns_400_with_metadata(*args, **kwargs)
test_router_remove_interface_callback_failure_returns_409(*args, **kwargs)
test_router_remove_interface_inuse_returns_409(*args, **kwargs)
test_router_remove_interface_inuse_returns_409_with_metadata(*args, **kwargs)
test_router_remove_interface_nothing_returns_400(*args, **kwargs)
test_router_remove_interface_returns_200(*args, **kwargs)
test_router_remove_interface_with_both_ids_returns_200(*args, **kwargs)
test_router_remove_interface_wrong_port_returns_404(*args, **kwargs)
test_router_remove_interface_wrong_subnet_returns_400(*args, **kwargs)
test_router_remove_ipv6_subnet_from_interface(*args, **kwargs)

Delete a subnet from a router interface

Verify that deleting a subnet with router-interface-delete removes that subnet when there are multiple subnets on the interface and removes the interface when it is the last subnet on the interface.

test_router_show(*args, **kwargs)
test_router_specify_id_backend(*args, **kwargs)
test_router_update(*args, **kwargs)
test_router_update_gateway(*args, **kwargs)
test_router_update_gateway_add_multiple_prefixes_ipv6(*args, **kwargs)
test_router_update_gateway_on_l3_ext_net(*args, **kwargs)
test_router_update_gateway_on_l3_ext_net_with_vlan(*args, **kwargs)
test_router_update_gateway_to_empty_with_existed_floatingip(*args, **kwargs)
test_router_update_gateway_upon_subnet_create_ipv6(*args, **kwargs)
test_router_update_gateway_upon_subnet_create_max_ips_ipv6(*args, **kwargs)

Create subnet should not cause excess fixed IPs on router gw

If a router gateway port has the maximum of one IPv4 and one IPv6 fixed, create subnet should not add any more IP addresses to the port (unless this is the subnet is a SLAAC/DHCPv6-stateless subnet in which case the addresses are added automatically)

test_router_update_gateway_with_different_external_subnet(*args, **kwargs)
test_router_update_gateway_with_existed_floatingip(*args, **kwargs)
test_router_update_gateway_with_external_ip_used_by_gw(*args, **kwargs)
test_router_update_gateway_with_invalid_external_ip(*args, **kwargs)
test_router_update_gateway_with_invalid_external_subnet(*args, **kwargs)
test_two_fips_one_port_invalid_return_409(*args, **kwargs)
test_update_port_device_id_to_different_tenants_router(*args, **kwargs)
test_update_subnet_gateway_for_external_net(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestL3SecGrpExtensionManager

Bases: vmware_nsx.tests.unit.nsx_mh.test_plugin.TestL3ExtensionManager

A fake extension manager for L3 and Security Group extensions.

Includes also NSX specific L3 attributes.

get_resources()
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestNetworksV2(*args, **kwds)

Bases: neutron.tests.unit.db.test_db_base_plugin_v2.TestNetworksV2, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase

test_create_bridge_network(*args, **kwargs)
test_create_bridge_vlan_network(*args, **kwargs)
test_create_bridge_vlan_network_outofrange_returns_400(*args, **kwargs)
test_create_l3_ext_network_fails_if_not_external(*args, **kwargs)
test_create_network(*args, **kwargs)
test_create_network_maintenance_returns_503(*args, **kwargs)
test_create_network_name_exceeds_40_chars(*args, **kwargs)
test_create_network_vlan_transparent(*args, **kwargs)
test_create_networks_bulk_emulated(*args, **kwargs)
test_create_networks_bulk_emulated_plugin_failure(*args, **kwargs)
test_create_networks_bulk_native(*args, **kwargs)
test_create_networks_bulk_native_plugin_failure(*args, **kwargs)
test_create_networks_bulk_native_quotas(*args, **kwargs)
test_create_networks_bulk_tenants_and_quotas(*args, **kwargs)
test_create_networks_bulk_tenants_and_quotas_fail(*args, **kwargs)
test_create_networks_bulk_wrong_input(*args, **kwargs)
test_create_networks_native_quotas(*args, **kwargs)
test_create_public_network(*args, **kwargs)
test_create_public_network_no_admin_tenant(*args, **kwargs)
test_delete_network_after_removing_subet(*args, **kwargs)
test_invalid_admin_status(*args, **kwargs)
test_list_networks(*args, **kwargs)
test_list_networks_filter_by_id(*args, **kwargs)
test_list_networks_with_fields(*args, **kwargs)
test_list_networks_with_pagination_emulated(*args, **kwargs)
test_list_networks_with_pagination_native(*args, **kwargs)
test_list_networks_with_pagination_reverse_emulated(*args, **kwargs)
test_list_networks_with_pagination_reverse_native(*args, **kwargs)
test_list_networks_with_parameters(*args, **kwargs)
test_list_networks_with_parameters_invalid_values(*args, **kwargs)
test_list_networks_with_shared(*args, **kwargs)
test_list_networks_with_sort_emulated(*args, **kwargs)
test_list_networks_with_sort_extended_attr_native_returns_400(*args, **kwargs)
test_list_networks_with_sort_native(*args, **kwargs)
test_list_networks_with_sort_remote_key_native_returns_400(*args, **kwargs)
test_list_networks_without_pk_in_fields_pagination_emulated(*args, **kwargs)
test_list_networks_without_pk_in_fields_pagination_native(*args, **kwargs)
test_list_shared_networks_with_non_admin_user(*args, **kwargs)
test_show_network(*args, **kwargs)
test_show_network_with_subnet(*args, **kwargs)
test_update_network(*args, **kwargs)
test_update_network_set_not_shared_multi_tenants2_returns_409(*args, **kwargs)
test_update_network_set_not_shared_multi_tenants_returns_409(*args, **kwargs)
test_update_network_set_not_shared_other_tenant_access_via_rbac(*args, **kwargs)
test_update_network_set_not_shared_other_tenant_returns_409(*args, **kwargs)
test_update_network_set_not_shared_single_tenant(*args, **kwargs)
test_update_network_set_shared(*args, **kwargs)
test_update_network_set_shared_owner_returns_403(*args, **kwargs)
test_update_network_with_admin_false(*args, **kwargs)
test_update_network_with_name_calls_nsx(*args, **kwargs)
test_update_network_with_subnet_set_shared(*args, **kwargs)
test_update_shared_network_noadmin_returns_403(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestPortsV2(*args, **kwds)

Bases: vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase, neutron.tests.unit.db.test_db_base_plugin_v2.TestPortsV2, neutron.tests.unit._test_extension_portbindings.PortBindingsTestCase, neutron.tests.unit._test_extension_portbindings.PortBindingsHostTestCaseMixin, neutron.tests.unit._test_extension_portbindings.PortBindingsVnicTestCaseMixin

HAS_PORT_FILTER = True
VIF_TYPE = 'ovs'
test_bad_mac_format(*args, **kwargs)
test_create_port_None_values(*args, **kwargs)
test_create_port_anticipating_allocation(*args, **kwargs)
test_create_port_as_admin(*args, **kwargs)
test_create_port_bad_tenant(*args, **kwargs)
test_create_port_binding_profile_none(*args, **kwargs)
test_create_port_binding_profile_with_empty_dict(*args, **kwargs)
test_create_port_db_error_no_orphan_left(*args, **kwargs)
test_create_port_invalid_fixed_ip_address_v6_pd_slaac(*args, **kwargs)
test_create_port_json(*args, **kwargs)
test_create_port_maintenance_returns_503(*args, **kwargs)
test_create_port_name_exceeds_40_chars(*args, **kwargs)
test_create_port_neutron_error_no_orphan_left(*args, **kwargs)
test_create_port_nsx_error_no_orphan_left(*args, **kwargs)
test_create_port_public_network(*args, **kwargs)
test_create_port_public_network_with_invalid_ip_and_subnet_id(*args, **kwargs)
test_create_port_public_network_with_invalid_ip_no_subnet_id(*args, **kwargs)
test_create_port_public_network_with_ip(*args, **kwargs)
test_create_port_with_ipv6_dhcp_stateful_subnet_in_fixed_ips(*args, **kwargs)
test_create_port_with_ipv6_pd_subnet_in_fixed_ips(*args, **kwargs)
test_create_port_with_ipv6_slaac_subnet_in_fixed_ips(*args, **kwargs)
test_create_port_with_multiple_ipv4_and_ipv6_subnets(*args, **kwargs)

Test port create with multiple IPv4, IPv6 DHCP/SLAAC subnets.

test_create_ports_bulk_emulated(*args, **kwargs)
test_create_ports_bulk_emulated_plugin_failure(*args, **kwargs)
test_create_ports_bulk_native(*args, **kwargs)
test_create_ports_bulk_native_plugin_failure(*args, **kwargs)
test_create_ports_bulk_native_quotas(*args, **kwargs)
test_create_ports_bulk_wrong_input(*args, **kwargs)
test_create_ports_native_quotas(*args, **kwargs)
test_create_router_port_ipv4_and_ipv6_slaac_no_fixed_ips(*args, **kwargs)
test_delete_network_if_port_exists(*args, **kwargs)
test_delete_network_port_exists_owned_by_network(*args, **kwargs)
test_delete_network_port_exists_owned_by_network_port_not_found(*args, **kwargs)

Tests that we continue to gracefully delete the network even if a neutron:dhcp-owned port was deleted concurrently.

test_delete_network_port_exists_owned_by_network_race(*args, **kwargs)
test_delete_port(*args, **kwargs)
test_delete_port_by_network_owner(*args, **kwargs)
test_delete_port_public_network(*args, **kwargs)
test_delete_port_with_ipv6_slaac_address(*args, **kwargs)

Test that a port with an IPv6 SLAAC address can be deleted.

test_delete_ports_by_device_id(*args, **kwargs)
test_delete_ports_by_device_id_second_call_failure(*args, **kwargs)
test_delete_ports_ignores_port_not_found(*args, **kwargs)
test_dhcp_port_ips_prefer_next_available_ip(*args, **kwargs)
test_duplicate_ips(*args, **kwargs)
test_duplicate_mac_generation(*args, **kwargs)
test_exhaust_ports_bridged_network(*args, **kwargs)
test_exhaust_ports_overlay_network(*args, **kwargs)
test_fixed_ip_invalid_ip(*args, **kwargs)
test_fixed_ip_invalid_subnet_id(*args, **kwargs)
test_get_ports_count(*args, **kwargs)
test_invalid_admin_state(*args, **kwargs)
test_invalid_ip(*args, **kwargs)
test_invalid_mac_address(*args, **kwargs)
test_ip_allocation_for_ipv6_2_subnet_slaac_mode(*args, **kwargs)
test_ip_allocation_for_ipv6_subnet_slaac_address_mode(*args, **kwargs)
test_is_mac_in_use(*args, **kwargs)
test_list_ports(*args, **kwargs)
test_list_ports_filtered_by_fixed_ip(*args, **kwargs)
test_list_ports_filtered_by_fixed_ip_with_limit(*args, **kwargs)
test_list_ports_for_network_owner(*args, **kwargs)
test_list_ports_public_network(*args, **kwargs)
test_list_ports_with_pagination_emulated(*args, **kwargs)
test_list_ports_with_pagination_native(*args, **kwargs)
test_list_ports_with_pagination_reverse_emulated(*args, **kwargs)
test_list_ports_with_pagination_reverse_native(*args, **kwargs)
test_list_ports_with_sort_emulated(*args, **kwargs)
test_list_ports_with_sort_native(*args, **kwargs)
test_mac_generation(*args, **kwargs)
test_mac_generation_4octet(*args, **kwargs)
test_no_more_port_exception(*args, **kwargs)
test_overlapping_subnets(*args, **kwargs)
test_port_create_portinfo_non_admin(*args, **kwargs)
test_port_update_portinfo_non_admin(*args, **kwargs)
test_port_update_with_ipam_error(*args, **kwargs)
test_port_vif_details(*args, **kwargs)
test_port_vif_host(*args, **kwargs)
test_port_vif_non_admin(*args, **kwargs)
test_port_vnic_type(*args, **kwargs)
test_port_vnic_type_non_admin(*args, **kwargs)
test_ports_vif_details(*args, **kwargs)
test_ports_vif_host(*args, **kwargs)
test_ports_vif_host_list(*args, **kwargs)
test_ports_vif_host_update(*args, **kwargs)
test_ports_vif_non_host_update(*args, **kwargs)
test_ports_vif_non_host_update_when_host_null(*args, **kwargs)
test_ports_vnic_type(*args, **kwargs)
test_range_allocation(*args, **kwargs)
test_requested_duplicate_ip(*args, **kwargs)
test_requested_duplicate_mac(*args, **kwargs)
test_requested_fixed_ip_address_v6_slaac_router_iface(*args, **kwargs)
test_requested_invalid_fixed_ip_address_v6_slaac(*args, **kwargs)
test_requested_invalid_fixed_ips(*args, **kwargs)
test_requested_ips_only(*args, **kwargs)
test_requested_subnet_id(*args, **kwargs)
test_requested_subnet_id_not_on_network(*args, **kwargs)
test_requested_subnet_id_v4_and_v6(*args, **kwargs)
test_requested_subnet_id_v4_and_v6_slaac(*args, **kwargs)
test_requested_subnet_id_v6_slaac(*args, **kwargs)
test_show_port(*args, **kwargs)
test_update_device_id_null(*args, **kwargs)
test_update_device_id_unchanged(*args, **kwargs)
test_update_port(*args, **kwargs)
test_update_port_add_additional_ip(*args, **kwargs)

Test update of port with additional IP.

test_update_port_binding_profile_none(*args, **kwargs)
test_update_port_binding_profile_with_empty_dict(*args, **kwargs)
test_update_port_delete_ip(*args, **kwargs)
test_update_port_excluding_ipv6_slaac_subnet_from_fixed_ips(*args, **kwargs)

Test port update excluding IPv6 SLAAC subnet from fixed ips.

test_update_port_invalid_fixed_ip_address_v6_pd_slaac(*args, **kwargs)
test_update_port_invalid_fixed_ip_address_v6_slaac(*args, **kwargs)
test_update_port_invalid_subnet_v6_pd_slaac(*args, **kwargs)
test_update_port_mac(*args, **kwargs)
test_update_port_mac_bad_owner(*args, **kwargs)
test_update_port_mac_ip(*args, **kwargs)
test_update_port_mac_used(*args, **kwargs)
test_update_port_mac_v6_slaac(*args, **kwargs)
test_update_port_not_admin(*args, **kwargs)
test_update_port_update_ip(*args, **kwargs)

Test update of port IP.

Check that a configured IP 10.0.0.2 is replaced by 10.0.0.10.

test_update_port_update_ip_address_only(*args, **kwargs)
test_update_port_update_ips(*args, **kwargs)

Update IP and associate new IP on port.

Check a port update with the specified subnet_id’s. A IP address will be allocated for each subnet_id.

test_update_port_with_ipv6_slaac_subnet_in_fixed_ips(*args, **kwargs)

Test port update with an IPv6 SLAAC subnet in fixed IPs.

test_update_port_with_new_ipv6_slaac_subnet_in_fixed_ips(*args, **kwargs)

Test port update with a new IPv6 SLAAC subnet in fixed IPs.

test_update_port_with_stale_subnet(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestSecurityGroup(*args, **kwds)

Bases: neutron.tests.unit.extensions.test_securitygroup.TestSecurityGroups, vmware_nsx.tests.unit.nsx_mh.test_plugin.SecurityGroupsTestCase

test_check_default_security_group_description(*args, **kwargs)
test_create_default_security_group_check_case_insensitive(*args, **kwargs)
test_create_default_security_group_fail(*args, **kwargs)
test_create_delete_security_group_port_in_use(*args, **kwargs)
test_create_port_with_bad_security_group(*args, **kwargs)
test_create_port_with_invalid_type_in_security_groups_param(*args, **kwargs)
test_create_port_with_multiple_security_groups(*args, **kwargs)
test_create_port_with_no_security_groups(*args, **kwargs)
test_create_port_with_non_uuid(*args, **kwargs)
test_create_security_group(*args, **kwargs)
test_create_security_group_bulk(*args, **kwargs)
test_create_security_group_name_exceeds_40_chars(*args, **kwargs)
test_create_security_group_rule_allow_all_ipv4(*args, **kwargs)
test_create_security_group_rule_allow_all_ipv4_v6_bulk(*args, **kwargs)
test_create_security_group_rule_bad_input(*args, **kwargs)
test_create_security_group_rule_bad_remote_group_id(*args, **kwargs)
test_create_security_group_rule_bad_security_group_id(*args, **kwargs)
test_create_security_group_rule_bad_tenant(*args, **kwargs)
test_create_security_group_rule_bad_tenant_remote_group_id(*args, **kwargs)
test_create_security_group_rule_bad_tenant_security_group_rule(*args, **kwargs)
test_create_security_group_rule_bulk_emulated(*args, **kwargs)
test_create_security_group_rule_bulk_native(*args, **kwargs)
test_create_security_group_rule_case_insensitive(*args, **kwargs)
test_create_security_group_rule_different_security_group_ids(*args, **kwargs)
test_create_security_group_rule_duplicate_rule_db(*args, **kwargs)
test_create_security_group_rule_duplicate_rule_db_emulated(*args, **kwargs)
test_create_security_group_rule_duplicate_rule_in_post(*args, **kwargs)
test_create_security_group_rule_duplicate_rule_in_post_emulated(*args, **kwargs)
test_create_security_group_rule_duplicate_rules(*args, **kwargs)
test_create_security_group_rule_duplicate_rules_diff_desc(*args, **kwargs)
test_create_security_group_rule_duplicate_rules_proto_name_num(*args, **kwargs)
test_create_security_group_rule_duplicate_rules_proto_num_name(*args, **kwargs)
test_create_security_group_rule_ethertype_invalid_as_number(*args, **kwargs)
test_create_security_group_rule_ethertype_invalid_for_protocol(*args, **kwargs)
test_create_security_group_rule_group_id(*args, **kwargs)
test_create_security_group_rule_icmp_code_too_big(*args, **kwargs)
test_create_security_group_rule_icmp_type_too_big(*args, **kwargs)
test_create_security_group_rule_icmp_with_code_only(*args, **kwargs)
test_create_security_group_rule_icmp_with_type_and_code(*args, **kwargs)
test_create_security_group_rule_icmp_with_type_only(*args, **kwargs)
test_create_security_group_rule_icmpv6_legacy_protocol_name(*args, **kwargs)
test_create_security_group_rule_icmpv6_with_type_only(*args, **kwargs)
test_create_security_group_rule_invalid_ethertype_for_prefix(*args, **kwargs)
test_create_security_group_rule_invalid_ip_prefix(*args, **kwargs)
test_create_security_group_rule_min_port_greater_max(*args, **kwargs)
test_create_security_group_rule_port_range_max_only(*args, **kwargs)
test_create_security_group_rule_port_range_min_only(*args, **kwargs)
test_create_security_group_rule_ports_but_no_protocol(*args, **kwargs)
test_create_security_group_rule_protocol_as_number(*args, **kwargs)
test_create_security_group_rule_protocol_as_number_range(*args, **kwargs)
test_create_security_group_rule_protocol_as_number_range_bad(*args, **kwargs)
test_create_security_group_rule_protocol_as_number_with_port(*args, **kwargs)
test_create_security_group_rule_remote_ip_prefix(*args, **kwargs)
test_create_security_group_rule_tcp_protocol_as_number(*args, **kwargs)
test_create_security_group_rule_with_invalid_ethertype(*args, **kwargs)
test_create_security_group_rule_with_invalid_protocol(*args, **kwargs)
test_create_security_group_rule_with_invalid_tcp_or_udp_protocol(*args, **kwargs)
test_create_security_group_rule_with_specific_id(*args, **kwargs)
test_create_security_group_rule_with_unmasked_prefix(*args, **kwargs)
test_create_security_group_rules_admin_tenant(*args, **kwargs)
test_create_security_group_rules_native_quotas(*args, **kwargs)
test_create_security_group_source_group_ip_and_ip_prefix(*args, **kwargs)
test_create_security_group_with_boolean_type_name(*args, **kwargs)
test_create_security_group_with_max_name_length(*args, **kwargs)
test_create_security_group_with_too_long_name(*args, **kwargs)
test_create_security_groups_native_quotas(*args, **kwargs)
test_default_security_group(*args, **kwargs)
test_default_security_group_rules(*args, **kwargs)
test_delete_default_security_group_admin(*args, **kwargs)
test_delete_default_security_group_nonadmin(*args, **kwargs)
test_delete_security_group(*args, **kwargs)
test_get_security_group(*args, **kwargs)
test_get_security_group_empty_rules(*args, **kwargs)
test_get_security_group_empty_rules_id_only(*args, **kwargs)
test_get_security_group_on_port_from_wrong_tenant(*args, **kwargs)
test_list_ports_security_group(*args, **kwargs)
test_list_security_group_rules(*args, **kwargs)
test_list_security_group_rules_with_pagination(*args, **kwargs)
test_list_security_group_rules_with_pagination_reverse(*args, **kwargs)
test_list_security_group_rules_with_sort(*args, **kwargs)
test_list_security_groups(*args, **kwargs)
test_list_security_groups_with_pagination(*args, **kwargs)
test_list_security_groups_with_pagination_reverse(*args, **kwargs)
test_list_security_groups_with_sort(*args, **kwargs)
test_security_group_list_creates_default_security_group(*args, **kwargs)
test_security_group_port_create_creates_default_security_group(*args, **kwargs)
test_skip_duplicate_default_sg_error(*args, **kwargs)
test_update_default_security_group_name_fail(*args, **kwargs)
test_update_default_security_group_with_description(*args, **kwargs)
test_update_port_remove_security_group_empty_list(*args, **kwargs)
test_update_port_remove_security_group_none(*args, **kwargs)
test_update_port_with_invalid_type_in_security_groups_param(*args, **kwargs)
test_update_port_with_multiple_security_groups(*args, **kwargs)
test_update_port_with_security_group(*args, **kwargs)
test_update_security_group(*args, **kwargs)
test_update_security_group_name_to_default_fail(*args, **kwargs)
test_update_security_group_with_boolean_type_name(*args, **kwargs)
test_update_security_group_with_max_name_length(*args, **kwargs)
test_update_security_group_with_too_long_name(*args, **kwargs)
class vmware_nsx.tests.unit.nsx_mh.test_plugin.TestV2HTTPResponse(*args, **kwds)

Bases: neutron.tests.unit.db.test_db_base_plugin_v2.TestV2HTTPResponse, vmware_nsx.tests.unit.nsx_mh.test_plugin.NsxPluginV2TestCase

test_bad_route_404(*args, **kwargs)
test_create_returns_201(*args, **kwargs)
test_delete_returns_204(*args, **kwargs)
test_delete_with_req_body_returns_400(*args, **kwargs)
test_list_returns_200(*args, **kwargs)
test_list_with_fields(*args, **kwargs)
test_list_with_fields_noadmin(*args, **kwargs)
test_list_with_fields_noadmin_and_policy_field(*args, **kwargs)

If a field used by policy is selected, do not duplicate it.

Verifies that if the field parameter explicitly specifies a field which is used by the policy engine, then it is not duplicated in the response.

test_show_returns_200(*args, **kwargs)
test_update_invalid_json_400(*args, **kwargs)
test_update_returns_200(*args, **kwargs)

This Page