openstackclient.tests.network.v2 package¶
Submodules¶
openstackclient.tests.network.v2.fakes module¶
-
class
openstackclient.tests.network.v2.fakes.
FakeAvailabilityZone
¶ Bases:
object
Fake one or more network availability zones (AZs).
-
static
create_availability_zones
(attrs={}, methods={}, count=2)¶ Create multiple fake AZs.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of AZs to fake
Returns: A list of FakeResource objects faking the AZs
-
static
create_one_availability_zone
(attrs={}, methods={})¶ Create a fake AZ.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object with name, state, etc.
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeFloatingIP
¶ Bases:
object
Fake one or more floating ip.
-
static
create_floating_ips
(attrs={}, methods={}, count=2)¶ Create multiple fake floating ips.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- 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={}, methods={})¶ Create a fake floating ip.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
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
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeNetwork
¶ Bases:
object
Fake one or more networks.
-
static
create_networks
(attrs={}, methods={}, count=2)¶ Create multiple fake networks.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of networks to fake
Returns: A list of FakeResource objects faking the networks
-
static
create_one_network
(attrs={}, methods={})¶ Create a fake network.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object, with id, name, admin_state_up, router_external, status, subnets, tenant_id
-
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
-
static
-
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={}, methods={})¶ Create a fake port.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object, with id, name, etc.
-
static
create_ports
(attrs={}, methods={}, count=2)¶ Create multiple fake ports.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- 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
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeRouter
¶ Bases:
object
Fake one or more routers.
-
static
create_one_router
(attrs={}, methods={})¶ Create a fake router.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object, with id, name, admin_state_up, status, tenant_id
-
static
create_routers
(attrs={}, methods={}, count=2)¶ Create multiple fake routers.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- 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
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeSecurityGroup
¶ Bases:
object
Fake one or more security groups.
-
static
create_one_security_group
(attrs={}, methods={})¶ Create a fake security group.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object, with id, name, etc.
-
static
create_security_groups
(attrs={}, methods={}, count=2)¶ Create multiple fake security groups.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of security groups to fake
Returns: A list of FakeResource objects faking the security groups
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeSecurityGroupRule
¶ Bases:
object
Fake one or more security group rules.
-
static
create_one_security_group_rule
(attrs={}, methods={})¶ Create a fake security group rule.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object, with id, etc.
-
static
create_security_group_rules
(attrs={}, methods={}, count=2)¶ Create multiple fake security group rules.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of security group rules to fake
Returns: A list of FakeResource objects faking the security group rules
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeSubnet
¶ Bases:
object
Fake one or more subnets.
-
static
create_one_subnet
(attrs={}, methods={})¶ Create a fake subnet.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object faking the subnet
-
static
create_subnets
(attrs={}, methods={}, count=2)¶ Create multiple fake subnets.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of subnets to fake
Returns: A list of FakeResource objects faking the subnets
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeSubnetPool
¶ Bases:
object
Fake one or more subnet pools.
-
static
create_one_subnet_pool
(attrs={}, methods={})¶ Create a fake subnet pool.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
Returns: A FakeResource object faking the subnet pool
-
static
create_subnet_pools
(attrs={}, methods={}, count=2)¶ Create multiple fake subnet pools.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- methods (Dictionary) – A dictionary with all methods
- count (int) – The number of subnet pools to fake
Returns: A list of FakeResource objects faking the subnet pools
-
static
-
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_floating_ip module¶
-
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-5f1d2eb5b24e44b495d072e551221d91, instance_id=server-id-94bd622083464e3c8e0fc6ddac82d249, 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-32517c5a98144d91aa2c12625d808543, id=floating-ip-id-3a8f5041eb59429e926f944ea0ecf85d, keys=<MagicMock id='4074443404'>, port_id=port-id-96f00edbc4144ca98f06da079e4a2ebb, project_id=project-id-62105b1a042a4f809987c2969e985d77, router_id=router-id-ceb5df62b8bd4321b6ca633503b6f5a7, status=DOWN, tenant_id=project-id-62105b1a042a4f809987c2969e985d77>¶
-
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-6685324047b544bb9398bf82a4186f0c', '1.0.9.0', '2.0.9.0', 'server-id-26c7f65c686148f38d6a42d41430426b', 'public'), ('floating-ip-id-086b428be0814d2a8855d4ba6c8024a5', '1.0.9.0', '2.0.9.0', 'server-id-b9f2ae81ba2e469093e30b69b2314fba', 'public'), ('floating-ip-id-28e11b028af74f3ea7009835140ddc7b', '1.0.9.0', '2.0.9.0', 'server-id-692ad36e63c1494d8a88ea4ac7109460', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-6685324047b544bb9398bf82a4186f0c, instance_id=server-id-26c7f65c686148f38d6a42d41430426b, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-086b428be0814d2a8855d4ba6c8024a5, instance_id=server-id-b9f2ae81ba2e469093e30b69b2314fba, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-28e11b028af74f3ea7009835140ddc7b, instance_id=server-id-692ad36e63c1494d8a88ea4ac7109460, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-28e11b028af74f3ea7009835140ddc7b, instance_id=server-id-692ad36e63c1494d8a88ea4ac7109460, 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-0a6a6000a873407e92c37aea34de8ea8', '1.0.9.0', '2.0.9.0', 'port-id-513394cb1ec349f5a97cdcc8559f8b4b'), ('floating-ip-id-98e99b9d8d174f3c827e9f53862da04d', '1.0.9.0', '2.0.9.0', 'port-id-128b982e091d48488b474ccd4642dac5'), ('floating-ip-id-c20cd2bc40d443b4b61064fa74b17c95', '1.0.9.0', '2.0.9.0', 'port-id-487a7b852ffc48e59d2ac2f673dbf876')]¶
-
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-44dca438eb0946228efb218f4b6aa8d2, id=floating-ip-id-0a6a6000a873407e92c37aea34de8ea8, keys=<MagicMock id='4083054604'>, port_id=port-id-513394cb1ec349f5a97cdcc8559f8b4b, project_id=project-id-6ddcd3c015834dabb6b811f137f7ed6e, router_id=router-id-c69de8700733429f932ecb1d69d82e0e, status=DOWN, tenant_id=project-id-6ddcd3c015834dabb6b811f137f7ed6e>, <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-776960332d3244f3a428b187b37daf5c, id=floating-ip-id-98e99b9d8d174f3c827e9f53862da04d, keys=<MagicMock id='4078567212'>, port_id=port-id-128b982e091d48488b474ccd4642dac5, project_id=project-id-92b68891b22f45369d313e33e4e01539, router_id=router-id-7ad9a0ca5d7d4108bed250d9c3f5193c, status=DOWN, tenant_id=project-id-92b68891b22f45369d313e33e4e01539>, <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-625be4e7598b4adc8b4aa139da000a42, id=floating-ip-id-c20cd2bc40d443b4b61064fa74b17c95, keys=<MagicMock id='4083367660'>, port_id=port-id-487a7b852ffc48e59d2ac2f673dbf876, project_id=project-id-11cc50a874b048759086f8029e0749b1, router_id=router-id-4dc9a945a5424428b82e5f7f02e3c37c, status=DOWN, tenant_id=project-id-11cc50a874b048759086f8029e0749b1>]¶
-
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-625be4e7598b4adc8b4aa139da000a42, id=floating-ip-id-c20cd2bc40d443b4b61064fa74b17c95, keys=<MagicMock id='4083367660'>, port_id=port-id-487a7b852ffc48e59d2ac2f673dbf876, project_id=project-id-11cc50a874b048759086f8029e0749b1, router_id=router-id-4dc9a945a5424428b82e5f7f02e3c37c, status=DOWN, tenant_id=project-id-11cc50a874b048759086f8029e0749b1>¶
-
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-c484a5bb7aa44bbe8bc44122331ba7d3', 'server-id-1d70f51e1adc4c89a59420411621e428', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-c484a5bb7aa44bbe8bc44122331ba7d3, instance_id=server-id-1d70f51e1adc4c89a59420411621e428, 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-e6469fadca48429bb16d271265856c1f', 'floating-ip-id-1ce0e9ff619f4166a7e983c52564b4e8', 'port-id-1b65ad05457b402ca15c5142dbbea8a8', 'project-id-95371c22723448fd9990941a7522feac', 'router-id-b0adc35565c2471db5f7d65ca9e59ebd', '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-e6469fadca48429bb16d271265856c1f, id=floating-ip-id-1ce0e9ff619f4166a7e983c52564b4e8, keys=<MagicMock id='4082721100'>, port_id=port-id-1b65ad05457b402ca15c5142dbbea8a8, project_id=project-id-95371c22723448fd9990941a7522feac, router_id=router-id-b0adc35565c2471db5f7d65ca9e59ebd, status=DOWN, tenant_id=project-id-95371c22723448fd9990941a7522feac>¶
-
setUp
()¶
-
test_floating_ip_show
()¶
-
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-dbfce2e9d6614317a4e6af732c9b1d53', False, 'network-label-8fb99b46193c43a5a52d5c8dbb105505', None, False, '255.255.255.0', None, None, 'project-id-96dfb0f1820a46a9bbe7df156e7766d9', 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', 'name', 'project_id', 'router_external', 'status', 'subnets')¶
-
data
= ('UP', '', '', 'network-id-75ebf62b86104c64ae3ff8837efd28dc', 'network-name-0ada4e029c6b4a12986329950f36f68d', '8-9-64', 'External', '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', 'name', 'project_id', 'router_external', 'status', 'subnets')¶
-
data
= ('UP', 'nova', '', 'network-id-4c7a5e1aaf79453d9e02d1db2e075672', 'network-name-8ae4e9effdb746d7b85bcad5bf707e1b', '8-9-64', 'External', '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
()¶
-
-
class
openstackclient.tests.network.v2.test_network.
TestDeleteNetworkCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_network.TestNetworkCompute
-
setUp
()¶
-
test_network_delete
()¶
-
-
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-54f39693f8154c358f76b3e3d095c226', 'network-name-6729354046c847c4b00f5f467c1fc7dc', 'a, b'), ('network-id-4573c6ce7ecf49bca1110a750a92601e', 'network-name-d8fc6beaac634ceb971ed934394631b9', 'a, b'), ('network-id-9666535eceee43fbb9c746a1a1903f37', 'network-name-470a55392f4846f39f6dc1fb851a82e4', 'a, b')]¶
-
data_long
= [('network-id-54f39693f8154c358f76b3e3d095c226', 'network-name-6729354046c847c4b00f5f467c1fc7dc', 'ACTIVE', 'project-id-54f9f4a291c7463085d6fa9bb57b66fa', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-4573c6ce7ecf49bca1110a750a92601e', 'network-name-d8fc6beaac634ceb971ed934394631b9', 'ACTIVE', 'project-id-7828eb6a0c364f7fab5ea3565705d01e', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-9666535eceee43fbb9c746a1a1903f37', 'network-name-470a55392f4846f39f6dc1fb851a82e4', 'ACTIVE', 'project-id-c56dc29620eb45a7a50b5822d6786635', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-9666535eceee43fbb9c746a1a1903f37, keys=<MagicMock id='4084239308'>, name=network-name-470a55392f4846f39f6dc1fb851a82e4, project_id=project-id-c56dc29620eb45a7a50b5822d6786635, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-c56dc29620eb45a7a50b5822d6786635>¶
-
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-5bfa99bb909246708df46db8b7b25545', 'network-label-378131f78b114897b4c027f4e92dddb9', '10.0.0.0/24'), ('network-id-92c84eba23134e498844ba7248de4934', 'network-label-915a73d19f364eccb08ca50ac5c25747', '10.0.0.0/24'), ('network-id-c132b06047bc4947aa38f4dfae7b4ffe', 'network-label-6cbf2d973470451f8fbc6b7a2d8ab594', '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-c132b06047bc4947aa38f4dfae7b4ffe, injected=False, keys=<MagicMock id='4085776908'>, label=network-label-6cbf2d973470451f8fbc6b7a2d8ab594, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-51107f845e24462ca997f20ac4804946, 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', 'name', 'project_id', 'router_external', 'status', 'subnets')¶
-
data
= ('UP', '', '', 'network-id-9efb823754374a3aaeecfb53b19c1db5', 'network-name-ed852d2a6f29476bac8b3b54d179ae7d', 'project-id-24a4eca3a933441fb50ee22b3e3951c2', 'External', '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-9b759d2e98ea4e3eb00c49d3620d403e', False, 'network-label-925f82286a744bc1949260cc002358a9', None, False, '255.255.255.0', None, None, 'project-id-732e71ceff2d498a935318748e2c24b7', None, False, None, None, None, None, None)¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_port module¶
-
class
openstackclient.tests.network.v2.test_port.
TestDeletePort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
setUp
()¶
-
test_delete
()¶
-
-
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.
TestShowPort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
columns
= ('admin_state_up', 'allowed_address_pairs', 'binding_host_id', 'binding_profile', 'binding_vif_details', 'binding_vif_type', 'binding_vnic_type', 'device_id', 'device_owner', 'dns_assignment', 'dns_name', 'extra_dhcp_opts', 'fixed_ips', 'id', 'mac_address', 'name', 'network_id', 'port_security_enabled', 'project_id', 'security_groups', 'status')¶
-
data
= ('UP', '', 'binding-host-id-1007a183848c4b2b9db3b9bf6871f45a', '', '', 'ovs', 'normal', 'device-id-8894b118bdd04cc8884cef0680ca62df', 'compute:nova', '', 'dns-name-6bd49e06afd9448589b485339a8fdffd', '', '', 'port-id-611457a3d5364db2b51b31ecfc7448ea', 'fa:16:3e:a9:4e:72', 'port-name-3182cf15278f40cf91cf7236a97b61ea', 'network-id-fba18c94f21645d786df984b74ef3f38', True, 'project-id-f0c4710dc8ca46dab8a80935e7b746ad', '', 'ACTIVE')¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_router module¶
-
class
openstackclient.tests.network.v2.test_router.
TestCreateRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
-
columns
= ('admin_state_up', 'distributed', 'ha', 'id', 'name', 'project_id')¶
-
data
= ('UP', False, False, 'router-id-2280abc2329a46f18a8544630eb88abc', 'router-name-aff652693ff74617af2393a4ea602c0e', 'project-id-a10a109ab6034f3890d35e65a61e4048')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-2280abc2329a46f18a8544630eb88abc, keys=<MagicMock id='4074309644'>, name=router-name-aff652693ff74617af2393a4ea602c0e, routes=[], status=ACTIVE, tenant_id=project-id-a10a109ab6034f3890d35e65a61e4048>¶
-
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-a7efdb5dbc4b4ed3b73890435177267f', 'router-name-8411882a5a924815835535c7e7d2b3d9', 'ACTIVE', 'UP', False, False, 'project-id-9f212e14f50441bf8ad21cd138ced04a'), ('router-id-91fec5ea0a044eeda3d8b7565ca4be91', 'router-name-448473e4d03049c29e1a568c81e2fc45', 'ACTIVE', 'UP', False, False, 'project-id-5e84664622d140ccb41c1fcb4e0b6b08'), ('router-id-6d4b8142369543b192d8c5c443768925', 'router-name-21c2bf55d8b54ef2a23f5b2de0f9548f', 'ACTIVE', 'UP', False, False, 'project-id-3e091ae90f454a8a8b5fc78bd8b82013')]¶
-
data_long
= [('router-id-a7efdb5dbc4b4ed3b73890435177267f', 'router-name-8411882a5a924815835535c7e7d2b3d9', 'ACTIVE', 'UP', False, False, 'project-id-9f212e14f50441bf8ad21cd138ced04a', [], '{}', ''), ('router-id-91fec5ea0a044eeda3d8b7565ca4be91', 'router-name-448473e4d03049c29e1a568c81e2fc45', 'ACTIVE', 'UP', False, False, 'project-id-5e84664622d140ccb41c1fcb4e0b6b08', [], '{}', ''), ('router-id-6d4b8142369543b192d8c5c443768925', 'router-name-21c2bf55d8b54ef2a23f5b2de0f9548f', 'ACTIVE', 'UP', False, False, 'project-id-3e091ae90f454a8a8b5fc78bd8b82013', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-6d4b8142369543b192d8c5c443768925, keys=<MagicMock id='4077168076'>, name=router-name-21c2bf55d8b54ef2a23f5b2de0f9548f, routes=[], status=ACTIVE, tenant_id=project-id-3e091ae90f454a8a8b5fc78bd8b82013>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-a7efdb5dbc4b4ed3b73890435177267f, keys=<MagicMock id='4077060140'>, name=router-name-8411882a5a924815835535c7e7d2b3d9, routes=[], status=ACTIVE, tenant_id=project-id-9f212e14f50441bf8ad21cd138ced04a>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-91fec5ea0a044eeda3d8b7565ca4be91, keys=<MagicMock id='4077129900'>, name=router-name-448473e4d03049c29e1a568c81e2fc45, routes=[], status=ACTIVE, tenant_id=project-id-5e84664622d140ccb41c1fcb4e0b6b08>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-6d4b8142369543b192d8c5c443768925, keys=<MagicMock id='4077168076'>, name=router-name-21c2bf55d8b54ef2a23f5b2de0f9548f, routes=[], status=ACTIVE, tenant_id=project-id-3e091ae90f454a8a8b5fc78bd8b82013>]¶
-
setUp
()¶
-
test_router_list_long
()¶
-
test_router_list_no_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_nothing
()¶
-
test_set_route
()¶
-
test_set_route_clear_routes
()¶
-
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', 'distributed', 'ha', 'id', 'name', 'tenant_id')¶
-
data
= ('UP', False, False, 'router-id-11ff52550dc44d549d1abaa831440b0e', 'router-name-7f66a30cfa1b4cd2be9952e48d5f2b26', 'project-id-e1218995008243c5850f7e345d2b8476')¶
-
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.
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
-
expected_columns
= ('ID', 'Name', 'Description')¶
-
expected_columns_all_projects
= ('ID', 'Name', 'Description', 'Project')¶
-
expected_data
= (('security-group-id-400b7ccab4674feaa0a8e92133fddffe', 'security-group-name-683a82b07d8f4dffa12850398a258d2c', 'security-group-description-c606a2485d914fec9480e9b69acd6653'),)¶
-
expected_data_all_projects
= (('security-group-id-400b7ccab4674feaa0a8e92133fddffe', 'security-group-name-683a82b07d8f4dffa12850398a258d2c', 'security-group-description-c606a2485d914fec9480e9b69acd6653', 'project-id-6644c676dfb04052a0edda00227e6e0a'),)¶
-
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
-
expected_columns
= ('ID', 'Name', 'Description', 'Project')¶
-
expected_data
= (('security-group-id-e1043de1d1a3475a849eb892b40154fb', 'security-group-name-496dbc7a59b34c43aca5c8f24c7d6fe9', 'security-group-description-655812194c40481086be5e480fa0002d', 'project-id-a843f98d7f174858981908515e249978'),)¶
-
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
()¶
-
openstackclient.tests.network.v2.test_security_group_rule module¶
-
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.
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-f619917e856840299c1512704c76658e', 'icmp', '0.0.0.0/0', 'security-group-id-2e185c7a228a42ccb9fcd69871cb7fe9', '', '')¶
-
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-6fe47826da6d4805b074ea3cbf8de024', None, None, 'project-id-215817e6155d494ba5a0a742d18e32ad', None, 'remote-security-group-id-dd6b8dfeb5da450bb3835f21a582b931', None, 'security-group-id-69ba51bcb7d9428080e2b8dc3e55dcfe')¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_subnet module¶
-
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-e86101ba82954e5b81d6b620de1b91b5', 'subnet-name-17ae70e753544d73a4bfd1e99ba725a6', 'network-id-e837e4a2d24743e089e74645286bd66e', '10.10.10.0/24'), ('subnet-id-bbee534292b04e4c8b7f37c5851cf6c5', 'subnet-name-5daf583586744b27b850142b33bfe8dd', 'network-id-a20490033e6f4a9c9dd2e3b6e63ce409', '10.10.10.0/24'), ('subnet-id-9b05701227f14dcc82e33450af08ad50', 'subnet-name-ff6177a5c8e84c2f80a4aec34a25b77f', 'network-id-5960f84c1e0f42b598744baf13ffef59', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-e86101ba82954e5b81d6b620de1b91b5', 'subnet-name-17ae70e753544d73a4bfd1e99ba725a6', 'network-id-e837e4a2d24743e089e74645286bd66e', '10.10.10.0/24', 'project-id-77c6a878eb2942a49bd5c91ecacd4bc9', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-bbee534292b04e4c8b7f37c5851cf6c5', 'subnet-name-5daf583586744b27b850142b33bfe8dd', 'network-id-a20490033e6f4a9c9dd2e3b6e63ce409', '10.10.10.0/24', 'project-id-4efea29f242b495e82592f0ec2e1ae6d', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-9b05701227f14dcc82e33450af08ad50', 'subnet-name-ff6177a5c8e84c2f80a4aec34a25b77f', 'network-id-5960f84c1e0f42b598744baf13ffef59', '10.10.10.0/24', 'project-id-2cc45f525b04409c810efb01c54eca53', 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-9b05701227f14dcc82e33450af08ad50, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='4066419756'>, name=subnet-name-ff6177a5c8e84c2f80a4aec34a25b77f, network_id=network-id-5960f84c1e0f42b598744baf13ffef59, project_id=project-id-2cc45f525b04409c810efb01c54eca53, subnetpool_id=None, tenant_id=project-id-2cc45f525b04409c810efb01c54eca53>¶
-
test_subnet_list_long
()¶
-
test_subnet_list_no_options
()¶
-
-
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-47d7def64a7b42879ae32995c02913c6', '4', 'None', 'None', 'subnet-name-6d313d03d0934227802db8590011da37', 'network-id-e7a196849d944c56923cbbc8ec42fb4c', 'project-id-420966ce5438473c8a4bd193d30a655f', '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.
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')¶
-
data
= [('subnet-pool-id-e6c8bbc4598e45f1b3b60fed5709b9bb', 'subnet-pool-name-c627f002688e4ad09746b510a0db65b5', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-a257bd93506f4662995300e5bed730a3', 'subnet-pool-name-934fc931a0c34662a5267ff7bb595033', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-a4267bbe95d84b76a8f82131f401e6bf', 'subnet-pool-name-2798a64db1c84310be01dec33886ebfe', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-e6c8bbc4598e45f1b3b60fed5709b9bb', 'subnet-pool-name-c627f002688e4ad09746b510a0db65b5', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-841a799bb9eb4a6cbd39ab82b3c344a7'), ('subnet-pool-id-a257bd93506f4662995300e5bed730a3', 'subnet-pool-name-934fc931a0c34662a5267ff7bb595033', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-908bedbeb1584261911ee96a468792ff'), ('subnet-pool-id-a4267bbe95d84b76a8f82131f401e6bf', 'subnet-pool-name-2798a64db1c84310be01dec33886ebfe', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-518d0e4163a9440598b63a584d91a55b')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-518d0e4163a9440598b63a584d91a55b, default_prefixlen=8, default_quota=None, id=subnet-pool-id-a4267bbe95d84b76a8f82131f401e6bf, ip_version=4, is_default=False, keys=<MagicMock id='4065806988'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-2798a64db1c84310be01dec33886ebfe, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-61ff51c600404366896914a164f75b48, shared=False, tenant_id=project-id-61ff51c600404366896914a164f75b48>¶
-
setUp
()¶
-
test_subnet_pool_list_long
()¶
-
test_subnet_pool_list_no_option
()¶
-
-
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-9c4ad44047d640e9aae859b8b4467bed', 8, None, 'subnet-pool-id-86e30cc364764a44976cf1f307640c27', 4, False, 32, 8, 'subnet-pool-name-de0e1c36592e44289b21f47159685140', '10.0.0.0/24, 10.1.0.0/24', 'project-id-8769c7ad699046999c7c9641384dd2da', 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
()¶
-