openstackclient.tests.network.v2 package

Submodules

openstackclient.tests.network.v2.fakes module

class openstackclient.tests.network.v2.fakes.FakeAddressScope

Bases: object

Fake one or more address scopes.

static create_address_scopes(attrs=None, count=2)

Create multiple fake address scopes.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of address scopes to fake
Returns:

A list of FakeResource objects faking the address scopes

static create_one_address_scope(attrs=None)

Create a fake address scope.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object with name, id, etc.
static get_address_scopes(address_scopes=None, count=2)

Get an iterable MagicMock object with a list of faked address scopes.

If address scopes list is provided, then initialize the Mock object with the list. Otherwise create one.

Parameters:
  • address scopes (List) – A list of FakeResource objects faking address scopes
  • count (int) – The number of address scopes to fake
Returns:

An iterable Mock object with side_effect set to a list of faked address scopes

class openstackclient.tests.network.v2.fakes.FakeAvailabilityZone

Bases: object

Fake one or more network availability zones (AZs).

static create_availability_zones(attrs=None, count=2)

Create multiple fake AZs.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of AZs to fake
Returns:

A list of FakeResource objects faking the AZs

static create_one_availability_zone(attrs=None)

Create a fake AZ.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object with name, state, etc.
class openstackclient.tests.network.v2.fakes.FakeFloatingIP

Bases: object

Fake one or more floating ip.

static create_floating_ips(attrs=None, count=2)

Create multiple fake floating ips.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of floating ips to fake
Returns:

A list of FakeResource objects faking the floating ips

static create_one_floating_ip(attrs=None)

Create a fake floating ip.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, ip, and so on
static get_floating_ips(floating_ips=None, count=2)

Get an iterable MagicMock object with a list of faked floating ips.

If floating_ips list is provided, then initialize the Mock object with the list. Otherwise create one.

Parameters:
  • floating ips (List) – A list of FakeResource objects faking floating ips
  • count (int) – The number of floating ips to fake
Returns:

An iterable Mock object with side_effect set to a list of faked floating ips

class openstackclient.tests.network.v2.fakes.FakeIPAvailability

Bases: object

Fake one or more network ip availabilities.

static create_ip_availability(count=2)

Create fake list of ip availability stats of multiple networks.

Parameters:count (int) – The number of networks to fake
Returns:A list of FakeResource objects faking network ip availability stats
static create_one_ip_availability()

Create a fake list with ip availability stats of a network.

Returns:A FakeResource object with network_name, network_id, etc.
class openstackclient.tests.network.v2.fakes.FakeNetwork

Bases: object

Fake one or more networks.

static create_networks(attrs=None, count=2)

Create multiple fake networks.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of networks to fake
Returns:

A list of FakeResource objects faking the networks

static create_one_network(attrs=None)

Create a fake network.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, name, etc.
static get_networks(networks=None, count=2)

Get an iterable MagicMock object with a list of faked networks.

If networks list is provided, then initialize the Mock object with the list. Otherwise create one.

Parameters:
  • networks (List) – A list of FakeResource objects faking networks
  • count (int) – The number of networks to fake
Returns:

An iterable Mock object with side_effect set to a list of faked networks

class openstackclient.tests.network.v2.fakes.FakeNetworkSegment

Bases: object

Fake one or more network segments.

static create_network_segments(attrs=None, count=2)

Create multiple fake network segments.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of network segments to fake
Returns:

A list of FakeResource objects faking the network segments

static create_one_network_segment(attrs=None)

Create a fake network segment.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object faking the network segment
class openstackclient.tests.network.v2.fakes.FakeNetworkV2Client(**kwargs)

Bases: object

class openstackclient.tests.network.v2.fakes.FakePort

Bases: object

Fake one or more ports.

static create_one_port(attrs=None)

Create a fake port.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, name, etc.
static create_ports(attrs=None, count=2)

Create multiple fake ports.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of ports to fake
Returns:

A list of FakeResource objects faking the ports

static get_ports(ports=None, count=2)

Get an iterable MagicMock object with a list of faked ports.

If ports list is provided, then initialize the Mock object with the list. Otherwise create one.

Parameters:
  • ports (List) – A list of FakeResource objects faking ports
  • count (int) – The number of ports to fake
Returns:

An iterable Mock object with side_effect set to a list of faked ports

class openstackclient.tests.network.v2.fakes.FakeRouter

Bases: object

Fake one or more routers.

static create_one_router(attrs=None)

Create a fake router.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, name, admin_state_up, status, tenant_id
static create_routers(attrs=None, count=2)

Create multiple fake routers.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of routers to fake
Returns:

A list of FakeResource objects faking the routers

static get_routers(routers=None, count=2)

Get an iterable MagicMock object with a list of faked routers.

If routers list is provided, then initialize the Mock object with the list. Otherwise create one.

Parameters:
  • routers (List) – A list of FakeResource objects faking routers
  • count (int) – The number of routers to fake
Returns:

An iterable Mock object with side_effect set to a list of faked routers

class openstackclient.tests.network.v2.fakes.FakeSecurityGroup

Bases: object

Fake one or more security groups.

static create_one_security_group(attrs=None)

Create a fake security group.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, name, etc.
static create_security_groups(attrs=None, count=2)

Create multiple fake security groups.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of security groups to fake
Returns:

A list of FakeResource objects faking the security groups

class openstackclient.tests.network.v2.fakes.FakeSecurityGroupRule

Bases: object

Fake one or more security group rules.

static create_one_security_group_rule(attrs=None)

Create a fake security group rule.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object, with id, etc.
static create_security_group_rules(attrs=None, count=2)

Create multiple fake security group rules.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of security group rules to fake
Returns:

A list of FakeResource objects faking the security group rules

class openstackclient.tests.network.v2.fakes.FakeSubnet

Bases: object

Fake one or more subnets.

static create_one_subnet(attrs=None)

Create a fake subnet.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object faking the subnet
static create_subnets(attrs=None, count=2)

Create multiple fake subnets.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of subnets to fake
Returns:

A list of FakeResource objects faking the subnets

class openstackclient.tests.network.v2.fakes.FakeSubnetPool

Bases: object

Fake one or more subnet pools.

static create_one_subnet_pool(attrs=None)

Create a fake subnet pool.

Parameters:attrs (Dictionary) – A dictionary with all attributes
Returns:A FakeResource object faking the subnet pool
static create_subnet_pools(attrs=None, count=2)

Create multiple fake subnet pools.

Parameters:
  • attrs (Dictionary) – A dictionary with all attributes
  • count (int) – The number of subnet pools to fake
Returns:

A list of FakeResource objects faking the subnet pools

class openstackclient.tests.network.v2.fakes.TestNetworkV2(*args, **kwargs)

Bases: openstackclient.tests.utils.TestCommand

setUp()
openstackclient.tests.network.v2.fakes.create_extension()

openstackclient.tests.network.v2.test_address_scope module

class openstackclient.tests.network.v2.test_address_scope.TestAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_address_scope.TestCreateAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_address_scope.TestAddressScope

columns = ('id', 'ip_version', 'name', 'project_id', 'shared')
data = ('address-scope-id-d9716cdb6e1444709b7ce9592ea82b4b', 4, 'address-scope-name-99aa08377df744e0b770cc0bb180a44d', '8-9-64', False)
new_address_scope = <FakeResource id=address-scope-id-d9716cdb6e1444709b7ce9592ea82b4b, ip_version=4, name=address-scope-name-99aa08377df744e0b770cc0bb180a44d, project_id=8-9-64, shared=False, tenant_id=8-9-64>
setUp()
test_create_all_options()
test_create_default_options()
test_create_no_options()
test_create_no_share()
class openstackclient.tests.network.v2.test_address_scope.TestDeleteAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_address_scope.TestAddressScope

setUp()
test_address_scope_delete()
test_multi_address_scopes_delete()
test_multi_address_scopes_delete_with_exception()
class openstackclient.tests.network.v2.test_address_scope.TestListAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_address_scope.TestAddressScope

address_scopes = [<FakeResource id=address-scope-id-e217d1a55d4041168647d478a92f259c, ip_version=4, name=address-scope-name-b5791364357842819cf6f305db527f17, project_id=project-id-d39e32cc7ec14e6f93bef697ca47a9dd, shared=False, tenant_id=project-id-d39e32cc7ec14e6f93bef697ca47a9dd>, <FakeResource id=address-scope-id-d0f4d40df58e4dab87e603f2e65a4d7a, ip_version=4, name=address-scope-name-30e3485953ae43ffba32ef47dd2e5e9b, project_id=project-id-98fd169b05ee4a7e8fbc40ce3f32830b, shared=False, tenant_id=project-id-98fd169b05ee4a7e8fbc40ce3f32830b>, <FakeResource id=address-scope-id-d2a31fe157a54a2182c7fb08355d9e0d, ip_version=4, name=address-scope-name-afbb182481a044aaa46816c4e86b3e64, project_id=project-id-e05908778f684e2da1931b1bbbe3e5db, shared=False, tenant_id=project-id-e05908778f684e2da1931b1bbbe3e5db>]
columns = ('ID', 'Name', 'IP Version', 'Shared', 'Project')
data = [('address-scope-id-e217d1a55d4041168647d478a92f259c', 'address-scope-name-b5791364357842819cf6f305db527f17', 4, False, 'project-id-d39e32cc7ec14e6f93bef697ca47a9dd'), ('address-scope-id-d0f4d40df58e4dab87e603f2e65a4d7a', 'address-scope-name-30e3485953ae43ffba32ef47dd2e5e9b', 4, False, 'project-id-98fd169b05ee4a7e8fbc40ce3f32830b'), ('address-scope-id-d2a31fe157a54a2182c7fb08355d9e0d', 'address-scope-name-afbb182481a044aaa46816c4e86b3e64', 4, False, 'project-id-e05908778f684e2da1931b1bbbe3e5db')]
scope = <FakeResource id=address-scope-id-d2a31fe157a54a2182c7fb08355d9e0d, ip_version=4, name=address-scope-name-afbb182481a044aaa46816c4e86b3e64, project_id=project-id-e05908778f684e2da1931b1bbbe3e5db, shared=False, tenant_id=project-id-e05908778f684e2da1931b1bbbe3e5db>
setUp()
test_address_scope_list()
class openstackclient.tests.network.v2.test_address_scope.TestSetAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_address_scope.TestAddressScope

setUp()
test_set_name_and_share()
test_set_no_share()
test_set_nothing()
class openstackclient.tests.network.v2.test_address_scope.TestShowAddressScope(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_address_scope.TestAddressScope

columns = ('id', 'ip_version', 'name', 'project_id', 'shared')
data = ('address-scope-id-4cac0f011bf845caacd682323a071840', 4, 'address-scope-name-131ba6ab9297497997dd90b3eecc8d74', 'project-id-018f7f2797714f34bc3bcfb6e9a92f62', False)
setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_floating_ip module

class openstackclient.tests.network.v2.test_floating_ip.TestCreateFloatingIPCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPCompute

columns = ('fixed_ip', 'id', 'instance_id', 'ip', 'pool')
data = ('2.0.9.0', 'floating-ip-id-121a6fbc0d6345b0ae78b682458d4964', 'server-id-79ddcf6555fa45e8a4602d36abe80d64', '1.0.9.0', 'public')
floating_ip = <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-121a6fbc0d6345b0ae78b682458d4964, instance_id=server-id-79ddcf6555fa45e8a4602d36abe80d64, ip=1.0.9.0, pool=public>
setUp()
test_create_default_options()
test_create_no_options()
class openstackclient.tests.network.v2.test_floating_ip.TestCreateFloatingIPNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork

columns = ('dns_domain', 'dns_name', 'fixed_ip_address', 'floating_ip_address', 'floating_network_id', 'id', 'port_id', 'project_id', 'router_id', 'status')
data = (None, None, '2.0.9.0', '1.0.9.0', 'network-id-7e9edcdf3e894c5dbf00f7a25a331eff', 'floating-ip-id-8d235770d18940a9a41d2d2f62ccaa40', 'port-id-c55307b9752240eab80637e90a71e6c6', 'project-id-d0994265b33f4453a5a78e8276b2d644', 'router-id-47a5022d08fc475da82832f5d3dacd73', 'DOWN')
floating_ip = <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-7e9edcdf3e894c5dbf00f7a25a331eff, id=floating-ip-id-8d235770d18940a9a41d2d2f62ccaa40, port_id=port-id-c55307b9752240eab80637e90a71e6c6, project_id=project-id-d0994265b33f4453a5a78e8276b2d644, router_id=router-id-47a5022d08fc475da82832f5d3dacd73, status=DOWN, tenant_id=project-id-d0994265b33f4453a5a78e8276b2d644>
floating_network = <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-7e9edcdf3e894c5dbf00f7a25a331eff, is_default=False, is_router_external=True, name=network-name-e5cd9f4be82e4528b1c58ba3ff964773, project_id=project-id-c1dc659539724f85966aad2e0c85918c, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-c1dc659539724f85966aad2e0c85918c>
port = <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-a3fa756cbba0406cbc3f0f8ed458e955, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-a3fa756cbba0406cbc3f0f8ed458e955, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-6721f8f2451043828faf6f8d1b8a796e, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-7f821984e16b45c085f0b942cff16218, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-c55307b9752240eab80637e90a71e6c6, mac_address=fa:16:3e:a9:4e:72, name=port-name-54b6d54c4b1c4e5392003869da6f32e3, network_id=network-id-a707e2f76cac4b3db6f543de9fae8816, port_security_enabled=True, project_id=project-id-f7771dde286d49779385ba781f63369c, security_groups=[], status=ACTIVE, tenant_id=project-id-f7771dde286d49779385ba781f63369c>
setUp()
subnet = <FakeResource allocation_pools=[], cidr=10.10.10.0/24, dns_nameservers=[], enable_dhcp=True, gateway_ip=10.10.10.1, host_routes=[], id=subnet-id-aec1ef6589884aa0a7c411911271ed38, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-cde87417dbc64988ad7a8ac1fd2cf7f3, network_id=network-id-42f8a8122a9a44fb8f2148afd05efd1f, project_id=project-id-b9bbe619dbea40cbb9e0854b51d273b9, subnetpool_id=None, tenant_id=project-id-b9bbe619dbea40cbb9e0854b51d273b9>
test_create_all_options()
test_create_default_options()
test_create_no_options()
class openstackclient.tests.network.v2.test_floating_ip.TestDeleteFloatingIPCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPCompute

floating_ip = <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-122aba9f312e475bab5ae585a4f5991d, instance_id=server-id-77ac609e6e1b475ead6bfa6fc87cdf06, ip=1.0.9.0, pool=public>
setUp()
test_floating_ip_delete()
class openstackclient.tests.network.v2.test_floating_ip.TestDeleteFloatingIPNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork

floating_ip = <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-2dda775621ce4d5f9ea458b95a4dc2a4, id=floating-ip-id-0d2082c84d144bd395b37fa7c6f840f0, port_id=port-id-5a4c52b104204c49b72f0ff5f0a0920d, project_id=project-id-6f4f3fb960a54a05b99592b40c4d72b2, router_id=router-id-d38414bc787943798d6a513806f64d8b, status=DOWN, tenant_id=project-id-6f4f3fb960a54a05b99592b40c4d72b2>
setUp()
test_floating_ip_delete()
class openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPCompute(*args, **kwargs)

Bases: openstackclient.tests.compute.v2.fakes.TestComputev2

setUp()
class openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_floating_ip.TestListFloatingIPCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPCompute

columns = ('ID', 'Floating IP Address', 'Fixed IP Address', 'Server', 'Pool')
data = [('floating-ip-id-cf18f9d58c544de2b2cde7d4dea565fd', '1.0.9.0', '2.0.9.0', 'server-id-a17e71c8fb5d4b60bcda488d15090d52', 'public'), ('floating-ip-id-8a59dd5116174645978c5b97f4b15e35', '1.0.9.0', '2.0.9.0', 'server-id-f161e07daad94bd9a49c4cd79786c27e', 'public'), ('floating-ip-id-bc1021429cbc48e7a385a8c20eec12d9', '1.0.9.0', '2.0.9.0', 'server-id-d27d9197dce14e11908bf6c13d55b068', 'public')]
floating_ips = [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-cf18f9d58c544de2b2cde7d4dea565fd, instance_id=server-id-a17e71c8fb5d4b60bcda488d15090d52, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-8a59dd5116174645978c5b97f4b15e35, instance_id=server-id-f161e07daad94bd9a49c4cd79786c27e, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-bc1021429cbc48e7a385a8c20eec12d9, instance_id=server-id-d27d9197dce14e11908bf6c13d55b068, ip=1.0.9.0, pool=public>]
ip = <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-bc1021429cbc48e7a385a8c20eec12d9, instance_id=server-id-d27d9197dce14e11908bf6c13d55b068, ip=1.0.9.0, pool=public>
setUp()
test_floating_ip_list()
class openstackclient.tests.network.v2.test_floating_ip.TestListFloatingIPNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork

columns = ('ID', 'Floating IP Address', 'Fixed IP Address', 'Port')
data = [('floating-ip-id-024fae2204e248b9a68a605da4cf8c9c', '1.0.9.0', '2.0.9.0', 'port-id-4b93c5d164e3442eaa569c6462f4db5a'), ('floating-ip-id-f1ec22643efa4270908d412bcb77f7e9', '1.0.9.0', '2.0.9.0', 'port-id-b8029430421f4e1fa23b7860d1029727'), ('floating-ip-id-6891c80881934bf8a1aff485c512f6ca', '1.0.9.0', '2.0.9.0', 'port-id-8924f58d3bcf451d805c39f84a793466')]
floating_ips = [<FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-6e0a21e4f6774e0280ea34d5eb866055, id=floating-ip-id-024fae2204e248b9a68a605da4cf8c9c, port_id=port-id-4b93c5d164e3442eaa569c6462f4db5a, project_id=project-id-77aaab0ec90b407c915b7057963ffdbb, router_id=router-id-cdf1694fb2184f8d8f75f8216222c335, status=DOWN, tenant_id=project-id-77aaab0ec90b407c915b7057963ffdbb>, <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-3aceb59c0e7640da92ba7efa7900acea, id=floating-ip-id-f1ec22643efa4270908d412bcb77f7e9, port_id=port-id-b8029430421f4e1fa23b7860d1029727, project_id=project-id-a214b3c38550482a8fdf8542e637a252, router_id=router-id-a649dbb1891f4a3391709eaf0663f1d7, status=DOWN, tenant_id=project-id-a214b3c38550482a8fdf8542e637a252>, <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-259c4a5d33e44b49aee3c38c171c38d5, id=floating-ip-id-6891c80881934bf8a1aff485c512f6ca, port_id=port-id-8924f58d3bcf451d805c39f84a793466, project_id=project-id-c87fba0dacb84edda4d66c5593c97a5d, router_id=router-id-a89c9628a77f4e31a0f8ed666b0e352f, status=DOWN, tenant_id=project-id-c87fba0dacb84edda4d66c5593c97a5d>]
ip = <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-259c4a5d33e44b49aee3c38c171c38d5, id=floating-ip-id-6891c80881934bf8a1aff485c512f6ca, port_id=port-id-8924f58d3bcf451d805c39f84a793466, project_id=project-id-c87fba0dacb84edda4d66c5593c97a5d, router_id=router-id-a89c9628a77f4e31a0f8ed666b0e352f, status=DOWN, tenant_id=project-id-c87fba0dacb84edda4d66c5593c97a5d>
setUp()
test_floating_ip_list()
class openstackclient.tests.network.v2.test_floating_ip.TestShowFloatingIPCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPCompute

columns = ('fixed_ip', 'id', 'instance_id', 'ip', 'pool')
data = ('2.0.9.0', 'floating-ip-id-3bd6013895cf446595d153741890a705', 'server-id-540f09376303491584f44eb11ed63510', '1.0.9.0', 'public')
floating_ip = <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-3bd6013895cf446595d153741890a705, instance_id=server-id-540f09376303491584f44eb11ed63510, ip=1.0.9.0, pool=public>
setUp()
test_floating_ip_show()
class openstackclient.tests.network.v2.test_floating_ip.TestShowFloatingIPNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork

columns = ('dns_domain', 'dns_name', 'fixed_ip_address', 'floating_ip_address', 'floating_network_id', 'id', 'port_id', 'project_id', 'router_id', 'status')
data = (None, None, '2.0.9.0', '1.0.9.0', 'network-id-7633b50b7b6949d7be85a2fd98fe2814', 'floating-ip-id-b8c3b80b70ea4dafa65c98e4372eb7b9', 'port-id-1038d57081f64e3393035b6dbf500a60', 'project-id-8eebfc28b80e4c9e84dffeca60cac4cb', 'router-id-8ab7dbd502784caabd707b3cbe453083', 'DOWN')
floating_ip = <FakeResource dns_domain=None, dns_name=None, fixed_ip_address=2.0.9.0, floating_ip_address=1.0.9.0, floating_network_id=network-id-7633b50b7b6949d7be85a2fd98fe2814, id=floating-ip-id-b8c3b80b70ea4dafa65c98e4372eb7b9, port_id=port-id-1038d57081f64e3393035b6dbf500a60, project_id=project-id-8eebfc28b80e4c9e84dffeca60cac4cb, router_id=router-id-8ab7dbd502784caabd707b3cbe453083, status=DOWN, tenant_id=project-id-8eebfc28b80e4c9e84dffeca60cac4cb>
setUp()
test_floating_ip_show()

openstackclient.tests.network.v2.test_ip_availability module

class openstackclient.tests.network.v2.test_ip_availability.TestIPAvailability(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_ip_availability.TestListIPAvailability(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_ip_availability.TestIPAvailability

columns = ('Network ID', 'Network Name', 'Total IPs', 'Used IPs')
data = [('network-id-6ee09b8b76a841d0a7c11e235d317b50', 'network-name-a5d202a704a34f168d75103182c184b4', 254, 6), ('network-id-870e5966368f4554a51e7b7ca9588713', 'network-name-39b344146c524d15a0788d04855cd806', 254, 6), ('network-id-af8ee3f64193442a80234ad07ba4429d', 'network-name-f5b4d62e59bc41d3aa3a445ab36e6d1d', 254, 6)]
net = <FakeResource network_id=network-id-af8ee3f64193442a80234ad07ba4429d, network_name=network-name-f5b4d62e59bc41d3aa3a445ab36e6d1d, subnet_ip_availability=[], tenant_id=, total_ips=254, used_ips=6>
setUp()
test_list_ip_version()
test_list_no_options()
test_list_project()
class openstackclient.tests.network.v2.test_ip_availability.TestShowIPAvailability(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_ip_availability.TestIPAvailability

columns = ('network_id', 'network_name', 'project_id', 'subnet_ip_availability', 'total_ips', 'used_ips')
data = ('network-id-a78e387473544d8eadc267d39571bce3', 'network-name-9d5f8f2529234471a250cae3d66509d5', '', '', 254, 6)
setUp()
test_show_all_options()
test_show_no_option()

openstackclient.tests.network.v2.test_network module

class openstackclient.tests.network.v2.test_network.TestCreateNetworkCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetworkCompute

columns = ('bridge', 'bridge_interface', 'broadcast', 'cidr', 'cidr_v6', 'created_at', 'deleted', 'deleted_at', 'dhcp_server', 'dhcp_start', 'dns1', 'dns2', 'enable_dhcp', 'gateway', 'gateway_v6', 'host', 'id', 'injected', 'label', 'mtu', 'multi_host', 'netmask', 'netmask_v6', 'priority', 'project_id', 'rxtx_base', 'share_address', 'updated_at', 'vlan', 'vpn_private_address', 'vpn_public_address', 'vpn_public_port')
data = ('br100', None, '10.0.0.255', '10.0.0.0/24', None, '2016-02-11T11:17:37.000000', False, None, '10.0.0.1', '10.0.0.2', '8.8.4.4', None, True, '10.0.0.1', None, None, 'network-id-edcef086432c47718e137aab4b8de6db', False, 'network-label-01d38c4ef9cf41a98b8555fd8988f16a', None, False, '255.255.255.0', None, None, 'project-id-1d2414e092174c628f92a0870463b4c7', None, False, None, None, None, None, None)
setUp()
test_create_default_options()
test_create_no_options()
class openstackclient.tests.network.v2.test_network.TestCreateNetworkIdentityV2(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

columns = ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'id', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')
data = ('UP', '', '', 'network-id-82d2148c895e4111868d0408b01c6844', False, 'network-name-8816e081aab34229adf5063eaff22db0', '8-9-64', 'vlan', 'External', False, 'ACTIVE', 'a, b')
setUp()
test_create_with_domain_identityv2()
test_create_with_project_identityv2()
class openstackclient.tests.network.v2.test_network.TestCreateNetworkIdentityV3(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

columns = ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'id', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')
data = ('UP', 'nova', '', 'network-id-868a3e6174fe48e5b821bd53ee3a3516', False, 'network-name-4bf44c60856b4cacbff1abcb06725ee9', '8-9-64', 'vlan', 'External', False, 'ACTIVE', 'a, b')
setUp()
test_create_all_options()
test_create_default_options()
test_create_no_options()
test_create_other_options()
class openstackclient.tests.network.v2.test_network.TestDeleteNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

setUp()
test_delete_multiple_networks()
test_delete_multiple_networks_exception()
test_delete_one_network()
class openstackclient.tests.network.v2.test_network.TestDeleteNetworkCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetworkCompute

setUp()
test_delete_multiple_networks()
test_delete_multiple_networks_exception()
test_delete_one_network()
class openstackclient.tests.network.v2.test_network.TestListNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

columns = ('ID', 'Name', 'Subnets')
columns_long = ('ID', 'Name', 'Status', 'Project', 'State', 'Shared', 'Subnets', 'Network Type', 'Router Type', 'Availability Zones')
data = [('network-id-1867abbcce9e4a6295f5e704f17e06b8', 'network-name-c0be9e24e93640619429021e1fe0c595', 'a, b'), ('network-id-0772bb088e7646d4add79aa5d7a1bffc', 'network-name-0e82fb03d3d14a2fbba78a50b5b7aa00', 'a, b'), ('network-id-7ded3f33b1474eea9925670dd8d4c383', 'network-name-b34cbef6cc07441fa3f20f35c486c3bb', 'a, b')]
data_long = [('network-id-1867abbcce9e4a6295f5e704f17e06b8', 'network-name-c0be9e24e93640619429021e1fe0c595', 'ACTIVE', 'project-id-0daccd804dbf498ab2f56b78ede76fbb', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-0772bb088e7646d4add79aa5d7a1bffc', 'network-name-0e82fb03d3d14a2fbba78a50b5b7aa00', 'ACTIVE', 'project-id-96660ce1f227489992c98e16f22a03ff', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-7ded3f33b1474eea9925670dd8d4c383', 'network-name-b34cbef6cc07441fa3f20f35c486c3bb', 'ACTIVE', 'project-id-67a7b76aa0004b05a42eb71daf9c5c45', 'UP', False, 'a, b', 'vlan', 'External', '')]
net = <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-7ded3f33b1474eea9925670dd8d4c383, is_default=False, is_router_external=True, name=network-name-b34cbef6cc07441fa3f20f35c486c3bb, project_id=project-id-67a7b76aa0004b05a42eb71daf9c5c45, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-67a7b76aa0004b05a42eb71daf9c5c45>
setUp()
test_list_external()
test_network_list_long()
test_network_list_no_options()
class openstackclient.tests.network.v2.test_network.TestListNetworkCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetworkCompute

columns = ('ID', 'Name', 'Subnet')
data = [('network-id-17b42f0532df4139981b51e1febda672', 'network-label-47c87c5cbad445be9117673cebee1275', '10.0.0.0/24'), ('network-id-9c5514409db34c36b3737fede8116c7f', 'network-label-24a157c06cce4e4faf92d4056c1e3864', '10.0.0.0/24'), ('network-id-997bf9ed6ef44427a6b28fbfdede92c8', 'network-label-727dcfe149b44ddaa8d8e38ec1a61c91', '10.0.0.0/24')]
net = <FakeResource bridge=br100, bridge_interface=None, broadcast=10.0.0.255, cidr=10.0.0.0/24, cidr_v6=None, created_at=2016-02-11T11:17:37.000000, deleted=False, deleted_at=None, dhcp_server=10.0.0.1, dhcp_start=10.0.0.2, dns1=8.8.4.4, dns2=None, enable_dhcp=True, gateway=10.0.0.1, gateway_v6=None, host=None, id=network-id-997bf9ed6ef44427a6b28fbfdede92c8, injected=False, label=network-label-727dcfe149b44ddaa8d8e38ec1a61c91, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-55cac1610d1e4420affbef4204e2e75f, rxtx_base=None, share_address=False, updated_at=None, vlan=None, vpn_private_address=None, vpn_public_address=None, vpn_public_port=None>
setUp()
test_network_list_no_options()
class openstackclient.tests.network.v2.test_network.TestNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_network.TestNetworkCompute(*args, **kwargs)

Bases: openstackclient.tests.compute.v2.fakes.TestComputev2

setUp()
class openstackclient.tests.network.v2.test_network.TestSetNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

setUp()
test_set_nothing()
test_set_that()
test_set_this()
class openstackclient.tests.network.v2.test_network.TestShowNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetwork

columns = ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'id', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')
data = ('UP', '', '', 'network-id-1601b1463eed4e319d522c8cf55a7008', False, 'network-name-ac08593a177b41f288bdc3c9d4cde902', 'project-id-852f92ace711464bb29a5a5f9c9aa9b1', 'vlan', 'External', False, 'ACTIVE', 'a, b')
setUp()
test_show_all_options()
test_show_no_options()
class openstackclient.tests.network.v2.test_network.TestShowNetworkCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network.TestNetworkCompute

columns = ('bridge', 'bridge_interface', 'broadcast', 'cidr', 'cidr_v6', 'created_at', 'deleted', 'deleted_at', 'dhcp_server', 'dhcp_start', 'dns1', 'dns2', 'enable_dhcp', 'gateway', 'gateway_v6', 'host', 'id', 'injected', 'label', 'mtu', 'multi_host', 'netmask', 'netmask_v6', 'priority', 'project_id', 'rxtx_base', 'share_address', 'updated_at', 'vlan', 'vpn_private_address', 'vpn_public_address', 'vpn_public_port')
data = ('br100', None, '10.0.0.255', '10.0.0.0/24', None, '2016-02-11T11:17:37.000000', False, None, '10.0.0.1', '10.0.0.2', '8.8.4.4', None, True, '10.0.0.1', None, None, 'network-id-1b1b4ecf9c244aaa9735d61df2affd95', False, 'network-label-40881835124c443c90c36503b4ea37f7', None, False, '255.255.255.0', None, None, 'project-id-7ef94b17b4834684912717c8bce9d65a', None, False, None, None, None, None, None)
setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_network_segment module

class openstackclient.tests.network.v2.test_network_segment.TestListNetworkSegment(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network_segment.TestNetworkSegment

columns = ('ID', 'Network', 'Network Type', 'Segment')
columns_long = ('ID', 'Network', 'Network Type', 'Segment', 'Physical Network')
data = [('segment-id-d19d835ab45743d7ab089c9429fc33a5', 'network-id-40f2f664c92842c0abffceada9a5745d', 'vlan', 1024), ('segment-id-116c8ee32813458a9757bbfa2dda024c', 'network-id-14154dc463f143b18d3342e81784e88d', 'vlan', 1024), ('segment-id-59633fb05ceb49818ec161b8f950e5df', 'network-id-1ada957b8c994c94ac498106343cbe66', 'vlan', 1024)]
data_long = [('segment-id-d19d835ab45743d7ab089c9429fc33a5', 'network-id-40f2f664c92842c0abffceada9a5745d', 'vlan', 1024, 'physical-network-name-f4d4e1ea0e344ea9a4b0650b9aec0320'), ('segment-id-116c8ee32813458a9757bbfa2dda024c', 'network-id-14154dc463f143b18d3342e81784e88d', 'vlan', 1024, 'physical-network-name-e9f99aa5b90a4035bca925772e470f27'), ('segment-id-59633fb05ceb49818ec161b8f950e5df', 'network-id-1ada957b8c994c94ac498106343cbe66', 'vlan', 1024, 'physical-network-name-5ae72a69197e44be898f693472c8dc15')]
setUp()
test_list_long()
test_list_network()
test_list_no_beta_commands()
test_list_no_option()
class openstackclient.tests.network.v2.test_network_segment.TestNetworkSegment(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_network_segment.TestShowNetworkSegment(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_network_segment.TestNetworkSegment

columns = ('id', 'network_id', 'network_type', 'physical_network', 'segmentation_id')
data = ('segment-id-04c4999c656c48d5b3299cfb16ce972f', 'network-id-d1671d4fc37c4ec8aa07d675d5370d8a', 'vlan', 'physical-network-name-65d16c845d8248cc9095f215f4a4d088', 1024)
setUp()
test_show_all_options()
test_show_no_beta_commands()
test_show_no_options()

openstackclient.tests.network.v2.test_port module

class openstackclient.tests.network.v2.test_port.TestCreatePort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_port.TestPort

setUp()
test_create_default_options()
test_create_full_options()
class openstackclient.tests.network.v2.test_port.TestDeletePort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_port.TestPort

setUp()
test_multi_ports_delete()
test_multi_ports_delete_with_exception()
test_port_delete()
class openstackclient.tests.network.v2.test_port.TestListPort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_port.TestPort

columns = ('ID', 'Name', 'MAC Address', 'Fixed IP Addresses')
data = [('port-id-84e2af30af704c1aa590001e98dfeb01', 'port-name-e348961b31e34715bfb46558903218a7', 'fa:16:3e:a9:4e:72', ''), ('port-id-4fe90e0038044ed9aa320780ec8800c6', 'port-name-998c17a60a234967bd9bb4e6169647e4', 'fa:16:3e:a9:4e:72', ''), ('port-id-f7a327629e0c4093b6e38bffe76031f5', 'port-name-f34a8bb4e6914bb7974f8799738f11ce', 'fa:16:3e:a9:4e:72', '')]
prt = <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-cc9bdd86c5984a8e8c1e13a2511428fb, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-cc9bdd86c5984a8e8c1e13a2511428fb, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-ba932a37e5844be89bdcc9a6ba42e924, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-44bb9e31cf1349b0b197363382d2adb8, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-f7a327629e0c4093b6e38bffe76031f5, mac_address=fa:16:3e:a9:4e:72, name=port-name-f34a8bb4e6914bb7974f8799738f11ce, network_id=network-id-4468d7dbadba41faa7dbfc7c22432e91, port_security_enabled=True, project_id=project-id-d1ff3dc2563e4198aba94879f8be886a, security_groups=[], status=ACTIVE, tenant_id=project-id-d1ff3dc2563e4198aba94879f8be886a>
setUp()
test_port_list_no_options()
test_port_list_router_opt()
class openstackclient.tests.network.v2.test_port.TestPort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_port.TestSetPort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_port.TestPort

setUp()
test_append_fixed_ip()
test_set_fixed_ip()
test_set_that()
test_set_this()
class openstackclient.tests.network.v2.test_port.TestShowPort(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_port.TestPort

setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_router module

class openstackclient.tests.network.v2.test_router.TestAddPortToRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

Add port to Router

setUp()
test_add_port_no_option()
test_add_port_required_options()
class openstackclient.tests.network.v2.test_router.TestAddSubnetToRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

Add subnet to Router

setUp()
test_add_subnet_no_option()
test_add_subnet_required_options()
class openstackclient.tests.network.v2.test_router.TestCreateRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

columns = ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'distributed', 'external_gateway_info', 'ha', 'id', 'name', 'project_id', 'routes', 'status')
data = ('UP', '', '', False, '{}', False, 'router-id-f4dd3aebc4ac4011b205d733cf477001', 'router-name-8ee233b5d72c43488b6084cfaca106e5', 'project-id-da09bee4fbc44be9aeb43ce277b35b6a', '', 'ACTIVE')
new_router = <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-f4dd3aebc4ac4011b205d733cf477001, name=router-name-8ee233b5d72c43488b6084cfaca106e5, project_id=project-id-da09bee4fbc44be9aeb43ce277b35b6a, routes=[], status=ACTIVE, tenant_id=project-id-da09bee4fbc44be9aeb43ce277b35b6a>
setUp()
test_create_default_options()
test_create_no_options()
test_create_with_AZ_hints()
class openstackclient.tests.network.v2.test_router.TestDeleteRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

setUp()
test_delete()
class openstackclient.tests.network.v2.test_router.TestListRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

columns = ('ID', 'Name', 'Status', 'State', 'Distributed', 'HA', 'Project')
columns_long = ('ID', 'Name', 'Status', 'State', 'Distributed', 'HA', 'Project', 'Routes', 'External gateway info', 'Availability zones')
data = [('router-id-f90bb3861cc74539822c4f3ddbca6b9b', 'router-name-efb242394e6a44098693798805e033a8', 'ACTIVE', 'UP', False, False, 'project-id-e843c0ba01ff45d8ab2b30152620647f'), ('router-id-05ed0fc74bbf49539e0dcf76aa362f02', 'router-name-7fb10fd08faa42aa8d3c937b3ec396e6', 'ACTIVE', 'UP', False, False, 'project-id-561ec19affc74ec589fb1e840d4f9df1'), ('router-id-09cf45c0e75e474bab5e32513f33a7c2', 'router-name-d107783b6b764bf1b7d386a77366ba9b', 'ACTIVE', 'UP', False, False, 'project-id-cd9868bc483a45b7892ed2d5ce792c1a')]
data_long = [('router-id-f90bb3861cc74539822c4f3ddbca6b9b', 'router-name-efb242394e6a44098693798805e033a8', 'ACTIVE', 'UP', False, False, 'project-id-e843c0ba01ff45d8ab2b30152620647f', '', '{}', ''), ('router-id-05ed0fc74bbf49539e0dcf76aa362f02', 'router-name-7fb10fd08faa42aa8d3c937b3ec396e6', 'ACTIVE', 'UP', False, False, 'project-id-561ec19affc74ec589fb1e840d4f9df1', '', '{}', ''), ('router-id-09cf45c0e75e474bab5e32513f33a7c2', 'router-name-d107783b6b764bf1b7d386a77366ba9b', 'ACTIVE', 'UP', False, False, 'project-id-cd9868bc483a45b7892ed2d5ce792c1a', '', '{}', '')]
i = 2
r = <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-09cf45c0e75e474bab5e32513f33a7c2, name=router-name-d107783b6b764bf1b7d386a77366ba9b, project_id=project-id-cd9868bc483a45b7892ed2d5ce792c1a, routes=[], status=ACTIVE, tenant_id=project-id-cd9868bc483a45b7892ed2d5ce792c1a>
routers = [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-f90bb3861cc74539822c4f3ddbca6b9b, name=router-name-efb242394e6a44098693798805e033a8, project_id=project-id-e843c0ba01ff45d8ab2b30152620647f, routes=[], status=ACTIVE, tenant_id=project-id-e843c0ba01ff45d8ab2b30152620647f>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-05ed0fc74bbf49539e0dcf76aa362f02, name=router-name-7fb10fd08faa42aa8d3c937b3ec396e6, project_id=project-id-561ec19affc74ec589fb1e840d4f9df1, routes=[], status=ACTIVE, tenant_id=project-id-561ec19affc74ec589fb1e840d4f9df1>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-09cf45c0e75e474bab5e32513f33a7c2, name=router-name-d107783b6b764bf1b7d386a77366ba9b, project_id=project-id-cd9868bc483a45b7892ed2d5ce792c1a, routes=[], status=ACTIVE, tenant_id=project-id-cd9868bc483a45b7892ed2d5ce792c1a>]
setUp()
test_router_list_long()
test_router_list_no_options()
class openstackclient.tests.network.v2.test_router.TestRemovePortFromRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

Remove port from a Router

setUp()
test_remove_port_no_option()
test_remove_port_required_options()
class openstackclient.tests.network.v2.test_router.TestRemoveSubnetFromRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

Remove subnet from Router

setUp()
test_remove_subnet_no_option()
test_remove_subnet_required_options()
class openstackclient.tests.network.v2.test_router.TestRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_router.TestSetRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

setUp()
test_set_clear_routes()
test_set_distributed_centralized()
test_set_no_route()
test_set_nothing()
test_set_route()
test_set_route_clear_routes()
test_set_route_no_route()
test_set_that()
test_set_this()
class openstackclient.tests.network.v2.test_router.TestShowRouter(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_router.TestRouter

columns = ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'distributed', 'external_gateway_info', 'ha', 'id', 'name', 'project_id', 'routes', 'status')
data = ('UP', '', '', False, '{}', False, 'router-id-82b6c599af244e869d3e9627d766b5b5', 'router-name-32df88e8eec94abea5b92201b8581d06', 'project-id-9e7f8b4209284e3da142c3ca0a90fc6b', '', 'ACTIVE')
setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_security_group module

class openstackclient.tests.network.v2.test_security_group.TestCreateSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute

columns = ('description', 'id', 'name', 'project_id', 'rules')
data = ('security-group-description-f60bf522f64a4a57aaf12e676c0087cf', 'security-group-id-53e5bc262e314ea1be8678e89567fd65', 'security-group-name-9cda5f9a5344481db20e325c7e61f592', 'project-id-f1ee8e27602840819eb0020f7c59b4df', '')
setUp()
test_create_all_options()
test_create_min_options()
test_create_network_options()
test_create_no_options()
class openstackclient.tests.network.v2.test_security_group.TestCreateSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork

columns = ('description', 'id', 'name', 'project_id', 'rules')
data = ('security-group-description-b101a8daef9a481cb07053b4b9e45e44', 'security-group-id-e92ed43953754a46ba25dd24b6863ebc', 'security-group-name-fedf7424e99943d58695b30a822c0e76', 'project-id-b6c6e39b78ad43139335048d1fc53d7d', '')
setUp()
test_create_all_options()
test_create_min_options()
test_create_no_options()
class openstackclient.tests.network.v2.test_security_group.TestDeleteSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute

setUp()
test_security_group_delete()
class openstackclient.tests.network.v2.test_security_group.TestDeleteSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork

setUp()
test_security_group_delete()
class openstackclient.tests.network.v2.test_security_group.TestListSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute

columns = ('ID', 'Name', 'Description')
columns_all_projects = ('ID', 'Name', 'Description', 'Project')
data = [('security-group-id-4f1e855eece84878bc640b74546bdef0', 'security-group-name-ef2a5d5d6997478eabe7a190bcd2eec0', 'security-group-description-f81fac2c03964e87b0eaf9cde2057aeb'), ('security-group-id-c26468b066c24668afb1de52cec9ea6d', 'security-group-name-d51784f0788d49b0ab8f0da5cbf15533', 'security-group-description-db16538914a245ff809b7ea3bf75b48f'), ('security-group-id-6405f65e080943e6b6d95e68f203ed13', 'security-group-name-149d38a4ddc045a982435f91318ef964', 'security-group-description-4488c54ea5934a79a52e11381c39aa97')]
data_all_projects = [('security-group-id-4f1e855eece84878bc640b74546bdef0', 'security-group-name-ef2a5d5d6997478eabe7a190bcd2eec0', 'security-group-description-f81fac2c03964e87b0eaf9cde2057aeb', 'project-id-8da361298794441eadcfc6b6c0bca89e'), ('security-group-id-c26468b066c24668afb1de52cec9ea6d', 'security-group-name-d51784f0788d49b0ab8f0da5cbf15533', 'security-group-description-db16538914a245ff809b7ea3bf75b48f', 'project-id-b26a01016043457f944d1e3d81ee99b8'), ('security-group-id-6405f65e080943e6b6d95e68f203ed13', 'security-group-name-149d38a4ddc045a982435f91318ef964', 'security-group-description-4488c54ea5934a79a52e11381c39aa97', 'project-id-a5806485a37a4494ad3b471c48843032')]
grp = <FakeResource description=security-group-description-4488c54ea5934a79a52e11381c39aa97, id=security-group-id-6405f65e080943e6b6d95e68f203ed13, name=security-group-name-149d38a4ddc045a982435f91318ef964, rules=[], tenant_id=project-id-a5806485a37a4494ad3b471c48843032>
setUp()
test_security_group_list_all_projects()
test_security_group_list_no_options()
class openstackclient.tests.network.v2.test_security_group.TestListSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork

columns = ('ID', 'Name', 'Description', 'Project')
data = [('security-group-id-e8923cd9a46b4af09910d3a1a73aa4a0', 'security-group-name-b93ec4abdb4146ba904a67dfa108063e', 'security-group-description-d1a4f81dbea245779478a9d0e70e439f', 'project-id-ffe6e712cca44e7ab68141e2644c0891'), ('security-group-id-8ddcaf3075f246e5a8839714572224f0', 'security-group-name-ac270b98e7da42e1bd98061ce623b0e3', 'security-group-description-12abbf750e3f470c80483a75d331f457', 'project-id-6bf0cf3dbd46494a96d6fe4f2b7535c9'), ('security-group-id-59d4e104cdd8410bac5a191ce1035d4d', 'security-group-name-8ec91fe5ac364591be61f14e68648c3c', 'security-group-description-30060d3ae7254ca6a6f18274c25db400', 'project-id-8916a3bd1ec24bc58057d61b50be72b1')]
grp = <FakeResource description=security-group-description-30060d3ae7254ca6a6f18274c25db400, id=security-group-id-59d4e104cdd8410bac5a191ce1035d4d, name=security-group-name-8ec91fe5ac364591be61f14e68648c3c, project_id=project-id-8916a3bd1ec24bc58057d61b50be72b1, security_group_rules=[], tenant_id=project-id-8916a3bd1ec24bc58057d61b50be72b1>
setUp()
test_security_group_list_all_projects()
test_security_group_list_no_options()
class openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.compute.v2.fakes.TestComputev2

setUp()
class openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_security_group.TestSetSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute

setUp()
test_set_all_options()
test_set_no_options()
test_set_no_updates()
class openstackclient.tests.network.v2.test_security_group.TestSetSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork

setUp()
test_set_all_options()
test_set_no_options()
test_set_no_updates()
class openstackclient.tests.network.v2.test_security_group.TestShowSecurityGroupCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute

columns = ('description', 'id', 'name', 'project_id', 'rules')
data = ('security-group-description-bdf70443a0ff4bc2abc54e9b473c3831', 'security-group-id-2de7d88e0aae47f4b2bf8022d55452b9', 'security-group-name-d24bf09c3e5b43f0b4a2ed75ba5dba0c', 'project-id-757554eb44e948e1b2749d260d9d2988', u"id='security-group-rule-id-8d94d223f4cf43699d3f5c54944934ba', ip_protocol='tcp', ip_range='0.0.0.0/0', port_range='0:0'")
setUp()
test_show_all_options()
test_show_no_options()
class openstackclient.tests.network.v2.test_security_group.TestShowSecurityGroupNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork

columns = ('description', 'id', 'name', 'project_id', 'rules')
data = ('security-group-description-3a1ca742ba754ec1a5ec880121c60c6b', 'security-group-id-5079c45506dc4d9db09f6ea812d2905d', 'security-group-name-f5b610f4811a4069a2936287f7dbf728', 'project-id-3305c92218a94b0e860a314bdc0c9361', u"direction='ingress', ethertype='IPv4', id='security-group-rule-id-193263754248480ebf59dab4cf993184', protocol='tcp', remote_ip_prefix='0.0.0.0/0'")
setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_security_group_rule module

class openstackclient.tests.network.v2.test_security_group_rule.TestCreateSecurityGroupRuleCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute

setUp()
test_create_all_protocol_options()
test_create_all_source_options()
test_create_bad_protocol()
test_create_default_rule()
test_create_network_options()
test_create_no_options()
test_create_proto_option()
test_create_source_group()
test_create_source_ip()
class openstackclient.tests.network.v2.test_security_group_rule.TestCreateSecurityGroupRuleNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork

expected_columns = ('direction', 'ethertype', 'id', 'port_range_max', 'port_range_min', 'project_id', 'protocol', 'remote_group_id', 'remote_ip_prefix', 'security_group_id')
expected_data = None
setUp()
test_create_all_port_range_options()
test_create_all_protocol_options()
test_create_all_source_options()
test_create_bad_ethertype()
test_create_default_rule()
test_create_icmp_code()
test_create_icmp_type()
test_create_icmpv6_type()
test_create_ipv6_icmp_type_code()
test_create_network_options()
test_create_no_options()
test_create_proto_option()
test_create_source_group()
test_create_source_ip()
test_create_tcp_with_icmp_type()
class openstackclient.tests.network.v2.test_security_group_rule.TestDeleteSecurityGroupRuleCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute

setUp()
test_security_group_rule_delete()
class openstackclient.tests.network.v2.test_security_group_rule.TestDeleteSecurityGroupRuleNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork

setUp()
test_security_group_rule_delete()
class openstackclient.tests.network.v2.test_security_group_rule.TestListSecurityGroupRuleCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute

expected_columns_no_group = ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group', 'Security Group')
expected_columns_with_group = ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group')
expected_data_no_group = [('security-group-rule-id-65e6137099684da4839c9cbd88e4fe1e', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-d745c401a46948adb33681e6920f540c', 'security-group-id-96966721071a485cae20b662c248aeea'), ('security-group-rule-id-f265ca703bff4a2d9e552571c4eaead9', 'icmp', '10.0.2.0/24', '', 'security-group-name-d745c401a46948adb33681e6920f540c', 'security-group-id-7032216239c74c5f87f5f7b93d698267')]
expected_data_with_group = [('security-group-rule-id-65e6137099684da4839c9cbd88e4fe1e', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-d745c401a46948adb33681e6920f540c'), ('security-group-rule-id-f265ca703bff4a2d9e552571c4eaead9', 'icmp', '10.0.2.0/24', '', 'security-group-name-d745c401a46948adb33681e6920f540c')]
expected_rule_no_group = ('security-group-rule-id-f265ca703bff4a2d9e552571c4eaead9', 'icmp', '10.0.2.0/24', '', 'security-group-name-d745c401a46948adb33681e6920f540c', 'security-group-id-7032216239c74c5f87f5f7b93d698267')
expected_rule_with_group = ('security-group-rule-id-f265ca703bff4a2d9e552571c4eaead9', 'icmp', '10.0.2.0/24', '', 'security-group-name-d745c401a46948adb33681e6920f540c')
rule = {'port_range': '', 'ip_protocol': 'icmp', 'remote_security_group': 'security-group-name-d745c401a46948adb33681e6920f540c', 'parent_group_id': 'security-group-id-7032216239c74c5f87f5f7b93d698267', 'id': 'security-group-rule-id-f265ca703bff4a2d9e552571c4eaead9', 'ip_range': '10.0.2.0/24'}
setUp()
test_list_all_projects()
test_list_default()
test_list_with_group()
test_list_with_ignored_options()
class openstackclient.tests.network.v2.test_security_group_rule.TestListSecurityGroupRuleNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork

expected_columns_no_group = ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group', 'Security Group')
expected_columns_with_group_and_long = ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Direction', 'Ethertype', 'Remote Security Group')
expected_data_no_group = [('security-group-rule-id-8c6875beff6c4ccea8013aade569a5fa', 'tcp', '0.0.0.0/0', '80:80', None, 'security-group-id-c2fe867a3857443c8435686e86738e45'), ('security-group-rule-id-ea19c109e6844371897def5765b6f2bf', 'icmp', '10.0.2.0/24', '', None, 'security-group-id-c2fe867a3857443c8435686e86738e45')]
expected_data_with_group_and_long = [('security-group-rule-id-8c6875beff6c4ccea8013aade569a5fa', 'tcp', '0.0.0.0/0', '80:80', 'ingress', 'IPv4', None), ('security-group-rule-id-ea19c109e6844371897def5765b6f2bf', 'icmp', '10.0.2.0/24', '', 'ingress', 'IPv4', None)]
setUp()
test_list_default()
test_list_with_group_and_long()
test_list_with_ignored_options()
class openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute(*args, **kwargs)

Bases: openstackclient.tests.compute.v2.fakes.TestComputev2

setUp()
class openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()
class openstackclient.tests.network.v2.test_security_group_rule.TestShowSecurityGroupRuleCompute(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute

columns = ('id', 'ip_protocol', 'ip_range', 'parent_group_id', 'port_range', 'remote_security_group')
data = ('security-group-rule-id-d9f286b71fcd4c0dab41d296538956f7', 'tcp', '0.0.0.0/0', 'security-group-id-4d6a56d1f64f4610b4d966623f61c612', '0:0', '')
setUp()
test_show_all_options()
test_show_no_options()
class openstackclient.tests.network.v2.test_security_group_rule.TestShowSecurityGroupRuleNetwork(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork

columns = ('direction', 'ethertype', 'id', 'port_range_max', 'port_range_min', 'project_id', 'protocol', 'remote_group_id', 'remote_ip_prefix', 'security_group_id')
data = ('ingress', 'IPv4', 'security-group-rule-id-7b4ccdc43c154a37b83a2ad1b3e7e8db', None, None, 'project-id-c2d8741ed55843cfad5b36fbe64bd5a1', 'tcp', None, '0.0.0.0/0', 'security-group-id-7ae1a9e9c07e4f3ba71e11845e0b7d78')
setUp()
test_show_all_options()
test_show_no_options()

openstackclient.tests.network.v2.test_subnet module

class openstackclient.tests.network.v2.test_subnet.TestCreateSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet.TestSubnet

columns = ('allocation_pools', 'cidr', 'dns_nameservers', 'enable_dhcp', 'gateway_ip', 'host_routes', 'id', 'ip_version', 'ipv6_address_mode', 'ipv6_ra_mode', 'name', 'network_id', 'project_id', 'subnetpool_id')
data = ('', '10.10.10.0/24', '', True, '10.10.10.1', '', 'subnet-id-101b6e3b5cf449c8a62142e637a0201a', 4, 'None', 'None', 'subnet-name-bf6fa5ae84e34214ba913a7d7b8f35e4', 'network-id-ebc9e15f39f94490af0ee91607ba64d3', '8-9-64', 'None')
data_ipv6 = ('fe80::a00a:0:c0de:0:100-fe80::a00a:0:c0de:0:f000,fe80::a00a:0:c0de:1:100-fe80::a00a:0:c0de:1:f000', 'fe80:0:0:a00a::/64', 'fe80:27ff:a00a:f00f::ffff, fe80:37ff:a00a:f00f::ffff', True, 'fe80::a00a:0:c0de:0:1', u"destination='fe80:27ff:a00a:f00f::/64', gateway='fe80:27ff:a00a:f00f::1'\ndestination='fe80:37ff:a00a:f00f::/64', gateway='fe80:37ff:a00a:f00f::1'", 'subnet-id-187cc3b30c954a8394827f1b036f256b', 6, 'slaac', 'slaac', 'subnet-name-24f3c88be38f43458b99fd5b1803a1d0', 'network-id-2b0c6d43824d45ddb1e2a09d62b7e197', '8-9-64', 'None')
data_subnet_pool = ('', '10.10.10.0/24', '8.8.4.4, 8.8.8.8', True, '10.10.10.1', u"destination='10.20.20.0/24', gateway='10.20.20.1'\ndestination='10.30.30.0/24', gateway='10.30.30.1'", 'subnet-id-807fb219a69d45a595ed62b1b42ee975', 4, 'None', 'None', 'subnet-name-04040c0c833341c59dde67d0c0dbbc43', 'network-id-039fefffbeb4417395bdac440c279887', '8-9-64', 'subnet-pool-id-f1af63c19beb41c3a162f11c37a09fb9')
setUp()
test_create_default_options()
test_create_from_subnet_pool_options()
test_create_no_options()
test_create_options_subnet_range_ipv6()
class openstackclient.tests.network.v2.test_subnet.TestDeleteSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet.TestSubnet

setUp()
test_delete()
class openstackclient.tests.network.v2.test_subnet.TestListSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet.TestSubnet

columns = ('ID', 'Name', 'Network', 'Subnet')
columns_long = ('ID', 'Name', 'Network', 'Subnet', 'Project', 'DHCP', 'Name Servers', 'Allocation Pools', 'Host Routes', 'IP Version', 'Gateway')
data = [('subnet-id-28f4351be02a4e92a9300ab8272df60c', 'subnet-name-4a1e8dfa55c7422ea72fc282a2d526f4', 'network-id-5db533174041494cb43f0cf3b956cd76', '10.10.10.0/24'), ('subnet-id-bb8cbe7995194998b58504d8efefaa2f', 'subnet-name-c7de403767cc49279e130ae94baa45ff', 'network-id-7b9fed31137f4548afb67bec2d2b249a', '10.10.10.0/24'), ('subnet-id-d309257baee84744a3ecbd19c79af3f4', 'subnet-name-d18620c9ecb64a4981c8ae56ff361169', 'network-id-3795015a40fa4be395b15195a5765ec4', '10.10.10.0/24')]
data_long = [('subnet-id-28f4351be02a4e92a9300ab8272df60c', 'subnet-name-4a1e8dfa55c7422ea72fc282a2d526f4', 'network-id-5db533174041494cb43f0cf3b956cd76', '10.10.10.0/24', 'project-id-86d55d84885b48e69ef96cbc58e57d84', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-bb8cbe7995194998b58504d8efefaa2f', 'subnet-name-c7de403767cc49279e130ae94baa45ff', 'network-id-7b9fed31137f4548afb67bec2d2b249a', '10.10.10.0/24', 'project-id-1e6a0801ed9b4d8e9560fd077b44da62', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-d309257baee84744a3ecbd19c79af3f4', 'subnet-name-d18620c9ecb64a4981c8ae56ff361169', 'network-id-3795015a40fa4be395b15195a5765ec4', '10.10.10.0/24', 'project-id-12b9e9f77d404051bb0e89c46ac99720', True, '', '', '', 4, '10.10.10.1')]
setUp()
subnet = <FakeResource allocation_pools=[], cidr=10.10.10.0/24, dns_nameservers=[], enable_dhcp=True, gateway_ip=10.10.10.1, host_routes=[], id=subnet-id-d309257baee84744a3ecbd19c79af3f4, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-d18620c9ecb64a4981c8ae56ff361169, network_id=network-id-3795015a40fa4be395b15195a5765ec4, project_id=project-id-12b9e9f77d404051bb0e89c46ac99720, subnetpool_id=None, tenant_id=project-id-12b9e9f77d404051bb0e89c46ac99720>
test_subnet_list_ip_version()
test_subnet_list_long()
test_subnet_list_no_options()
class openstackclient.tests.network.v2.test_subnet.TestSetSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet.TestSubnet

setUp()
test_append_options()
test_set_nothing()
test_set_that()
test_set_this()
class openstackclient.tests.network.v2.test_subnet.TestShowSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet.TestSubnet

columns = ('allocation_pools', 'cidr', 'dns_nameservers', 'enable_dhcp', 'gateway_ip', 'host_routes', 'id', 'ip_version', 'ipv6_address_mode', 'ipv6_ra_mode', 'name', 'network_id', 'project_id', 'subnetpool_id')
data = ('', '10.10.10.0/24', '', True, '10.10.10.1', '', 'subnet-id-c1694d032dbd4907aae36ddf00dadea4', 4, 'None', 'None', 'subnet-name-cdae02369d884ab78edda7ee3c010580', 'network-id-78d31db1d19d4d65a3a4b77662444743', 'project-id-a7a516f552634ea484d53eb091f1af48', 'None')
setUp()
test_show_all_options()
test_show_no_options()
class openstackclient.tests.network.v2.test_subnet.TestSubnet(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()

openstackclient.tests.network.v2.test_subnet_pool module

class openstackclient.tests.network.v2.test_subnet_pool.TestCreateSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool

columns = ('address_scope_id', 'default_prefixlen', 'default_quota', 'id', 'ip_version', 'is_default', 'max_prefixlen', 'min_prefixlen', 'name', 'prefixes', 'project_id', 'shared')
data = ('address-scope-id-5a826333c55d4d8990dde95955165294', '8', None, 'subnet-pool-id-83365e87282244249e5939b02c0e4c1b', '4', False, '32', '8', 'subnet-pool-name-f366eefb2f574e7f95bb1ba345ca65c5', '10.0.0.0/24, 10.1.0.0/24', 'project-id-d6429ae1b1514a5bb940b4b3769a3d63', False)
setUp()
test_create_address_scope_option()
test_create_default_and_shared_options()
test_create_default_options()
test_create_len_negative()
test_create_no_options()
test_create_no_pool_prefix()

Make sure –pool-prefix is a required argument

test_create_prefixlen_options()
test_create_project_domain()
class openstackclient.tests.network.v2.test_subnet_pool.TestDeleteSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool

setUp()
test_delete()
class openstackclient.tests.network.v2.test_subnet_pool.TestListSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool

columns = ('ID', 'Name', 'Prefixes')
columns_long = ('ID', 'Name', 'Prefixes', 'Default Prefix Length', 'Address Scope', 'Default Subnet Pool', 'Shared')
data = [('subnet-pool-id-2c4091a90e614014ab9c1abb686c1764', 'subnet-pool-name-937ce6e009bd41ee89f1f25189a4c2a2', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-baa112a2354b444984175183bb1b9ad0', 'subnet-pool-name-4b84df68a6e04caeb3dcfc41dff430ba', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-58c25f78b22244f3abef2cad103c4b02', 'subnet-pool-name-a2848e147b4c4abd886ce63541257102', '10.0.0.0/24, 10.1.0.0/24')]
data_long = [('subnet-pool-id-2c4091a90e614014ab9c1abb686c1764', 'subnet-pool-name-937ce6e009bd41ee89f1f25189a4c2a2', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-7745cd5607a945dc92a9dbf38a3779e1', False, False), ('subnet-pool-id-baa112a2354b444984175183bb1b9ad0', 'subnet-pool-name-4b84df68a6e04caeb3dcfc41dff430ba', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-a836787b29bd4572b755282b1fa43a89', False, False), ('subnet-pool-id-58c25f78b22244f3abef2cad103c4b02', 'subnet-pool-name-a2848e147b4c4abd886ce63541257102', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-b66959dd4d504c6a8265514ac70807cc', False, False)]
pool = <FakeResource address_scope_id=address-scope-id-b66959dd4d504c6a8265514ac70807cc, default_prefixlen=8, default_quota=None, id=subnet-pool-id-58c25f78b22244f3abef2cad103c4b02, ip_version=4, is_default=False, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-a2848e147b4c4abd886ce63541257102, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-fd2140c8950d45edb3f8d6e350e12505, shared=False, tenant_id=project-id-fd2140c8950d45edb3f8d6e350e12505>
setUp()
test_subnet_pool_list_long()
test_subnet_pool_list_no_option()
class openstackclient.tests.network.v2.test_subnet_pool.TestSetSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool

setUp()
test_set_address_scope()
test_set_default()
test_set_len_negative()
test_set_no_address_scope()
test_set_no_address_scope_conflict()
test_set_no_default()
test_set_no_default_conflict()
test_set_nothing()
test_set_that()
test_set_this()
class openstackclient.tests.network.v2.test_subnet_pool.TestShowSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool

columns = ('address_scope_id', 'default_prefixlen', 'default_quota', 'id', 'ip_version', 'is_default', 'max_prefixlen', 'min_prefixlen', 'name', 'prefixes', 'project_id', 'shared')
data = ('address-scope-id-fc1b88b9970e4805a86e73440bd2a478', '8', None, 'subnet-pool-id-daec5e32d52941979caec57f0900cabc', '4', False, '32', '8', 'subnet-pool-name-a31783f28b7646559a3f7777b232a18f', '10.0.0.0/24, 10.1.0.0/24', 'project-id-f59fb25ba7df417b9d159b249f6c2783', False)
setUp()
test_show_all_options()
test_show_no_options()
class openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool(*args, **kwargs)

Bases: openstackclient.tests.network.v2.fakes.TestNetworkV2

setUp()

Module contents