The networking_cisco.tests.unit.ml2.drivers.cisco.n1kv.test_cisco_n1kv_ports Module

class networking_cisco.tests.unit.ml2.drivers.cisco.n1kv.test_cisco_n1kv_ports.TestN1KVMechDriverPortsV2(*args, **kwds)

Bases: neutron.tests.unit.db.test_db_base_plugin_v2.TestPortsV2, networking_cisco.tests.unit.ml2.drivers.cisco.n1kv.test_cisco_n1kv_mech.TestN1KVMechanismDriver

HAS_PORT_FILTER = True
VIF_TYPE = ‘ovs’
setUp()
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_invalid_fixed_ip_address_v6_pd_slaac(*args, **kwargs)
test_create_port_json(*args, **kwargs)
test_create_port_non_default_profile_restricted(*args, **kwargs)

Test port creation with a test policy profile, and restricted access to policy profiles.

test_create_port_non_default_profile_unrestricted(*args, **kwargs)

Test port creation with a test policy profile, and unrestricted access to policy profiles.

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_default_n1kv_policy_profile_id(*args, **kwargs)

Test port create without passing policy profile id.

test_create_port_with_default_n1kv_policy_profile_id_restricted(*args, **kwargs)

Test port creation with default policy profile, with restricted access to policy profiles.

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_default_n1kv_policy_profile_id(*args, **kwargs)

Test port delete without passing policy profile id.

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_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_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_update_with_ipam_error(*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_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)