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-82fdad091c214305bd7f03d81f605d16, instance_id=server-id-fc2af0d831a84172ab8cb1bd9df98db0, 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-d22293d206174cc49dea61fd3271a78a, id=floating-ip-id-d776e74c3a1d4ab5a1431d1050b0f5b2, keys=<MagicMock id='139734099377744'>, port_id=port-id-4162d35f4fef44fcb04c4e9709d9968e, project_id=project-id-76c53c10902f41aa9174f45c73900d57, router_id=router-id-3d04724a1fcd43178b56e69ef75ba0ce, status=DOWN, tenant_id=project-id-76c53c10902f41aa9174f45c73900d57>¶
-
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-98bd632939fd467586a64cbb6dd69795', '1.0.9.0', '2.0.9.0', 'server-id-67c2da42602e490e97d838270cd2d71f', 'public'), ('floating-ip-id-ca8b4fdcc6e4478891ad14bf8c4241f5', '1.0.9.0', '2.0.9.0', 'server-id-3e29fef2fdfb4aefa64ac6f26bb94331', 'public'), ('floating-ip-id-806c730317a242ca93275c58e34eb992', '1.0.9.0', '2.0.9.0', 'server-id-ddbfd48c7a684f63a6e2cf339f18b3e5', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-98bd632939fd467586a64cbb6dd69795, instance_id=server-id-67c2da42602e490e97d838270cd2d71f, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-ca8b4fdcc6e4478891ad14bf8c4241f5, instance_id=server-id-3e29fef2fdfb4aefa64ac6f26bb94331, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-806c730317a242ca93275c58e34eb992, instance_id=server-id-ddbfd48c7a684f63a6e2cf339f18b3e5, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-806c730317a242ca93275c58e34eb992, instance_id=server-id-ddbfd48c7a684f63a6e2cf339f18b3e5, 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-7d13dcb5b5cb414e81070f483fbdc6a5', '1.0.9.0', '2.0.9.0', 'port-id-9ab9de1bc4a84eeeb321954f57b55e0c'), ('floating-ip-id-b0f6f35f3fc54f47a24432d5f79afba4', '1.0.9.0', '2.0.9.0', 'port-id-b1e7b48f6d0341659158597d432c28a6'), ('floating-ip-id-14860be290444933856d6f267534e546', '1.0.9.0', '2.0.9.0', 'port-id-296f44f152a54ddb84eeef1a207b5624')]¶
-
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-1913fd609fcf4c4ab31772970cf7645f, id=floating-ip-id-7d13dcb5b5cb414e81070f483fbdc6a5, keys=<MagicMock id='139734217101072'>, port_id=port-id-9ab9de1bc4a84eeeb321954f57b55e0c, project_id=project-id-6a785d6c029b4af39e15d35ace96e201, router_id=router-id-51665c637464435ca43b927c419ebc81, status=DOWN, tenant_id=project-id-6a785d6c029b4af39e15d35ace96e201>, <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-91096984aa5e4bf1977b2460dd157ec7, id=floating-ip-id-b0f6f35f3fc54f47a24432d5f79afba4, keys=<MagicMock id='139734078825488'>, port_id=port-id-b1e7b48f6d0341659158597d432c28a6, project_id=project-id-627237dbbe2f4fad9dfec2856e860a6f, router_id=router-id-effd6368f54d4a4aa5ebe307ea5cef13, status=DOWN, tenant_id=project-id-627237dbbe2f4fad9dfec2856e860a6f>, <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-048fed0c41154746ad902d004f54a5eb, id=floating-ip-id-14860be290444933856d6f267534e546, keys=<MagicMock id='139734078637008'>, port_id=port-id-296f44f152a54ddb84eeef1a207b5624, project_id=project-id-fe8b8b568f73429a941ceb336bdd83a2, router_id=router-id-b8b033ad44164410b92180a213486859, status=DOWN, tenant_id=project-id-fe8b8b568f73429a941ceb336bdd83a2>]¶
-
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-048fed0c41154746ad902d004f54a5eb, id=floating-ip-id-14860be290444933856d6f267534e546, keys=<MagicMock id='139734078637008'>, port_id=port-id-296f44f152a54ddb84eeef1a207b5624, project_id=project-id-fe8b8b568f73429a941ceb336bdd83a2, router_id=router-id-b8b033ad44164410b92180a213486859, status=DOWN, tenant_id=project-id-fe8b8b568f73429a941ceb336bdd83a2>¶
-
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-f980ecbf17384747a3d5ddabd220fcd7', 'server-id-5ac476c8e11749b3a8c9e3405bc2c03f', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-f980ecbf17384747a3d5ddabd220fcd7, instance_id=server-id-5ac476c8e11749b3a8c9e3405bc2c03f, 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-03167a8196b7408cb4b79434163d8291', 'floating-ip-id-8df400923e364c589cd85123b8a46739', 'port-id-19749cc9f86c498b9b819cee97197331', 'project-id-b72a30a1ae604ab0940a82cf3ceb31db', 'router-id-133dc373d6a44f8f9bb887d56149de98', '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-03167a8196b7408cb4b79434163d8291, id=floating-ip-id-8df400923e364c589cd85123b8a46739, keys=<MagicMock id='139734099306064'>, port_id=port-id-19749cc9f86c498b9b819cee97197331, project_id=project-id-b72a30a1ae604ab0940a82cf3ceb31db, router_id=router-id-133dc373d6a44f8f9bb887d56149de98, status=DOWN, tenant_id=project-id-b72a30a1ae604ab0940a82cf3ceb31db>¶
-
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-2f50ce349bae4b6ea92d7d647abdf02d', False, 'network-label-af1534a8348c403fa67f03e180bdea6e', None, False, '255.255.255.0', None, None, 'project-id-c1bf9cc0c85b48dab562bc12f4846202', 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-0361ef9901274dbf8f951181d1e040ce', 'network-name-1f566a2dc7b149d6a98bee12d8428deb', '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-aec27299d32941e2ba66f186eeae1723', 'network-name-9b273e8a73194f4293f08729b90403df', '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-6101fb9f765c42be9138963f1ac02f43', 'network-name-d5f97d9c85c147ceb748a7369118ab4a', 'a, b'), ('network-id-2877e8b0100443978ffd63db09831c38', 'network-name-dae50045fa634e6db0b665642793a0e9', 'a, b'), ('network-id-e4d309260ec84880853aba976ac453b4', 'network-name-9a10d43fbc334d6d864405b712c6feba', 'a, b')]¶
-
data_long
= [('network-id-6101fb9f765c42be9138963f1ac02f43', 'network-name-d5f97d9c85c147ceb748a7369118ab4a', 'ACTIVE', 'project-id-c2cb76e6d3da4ee69cc36b915a10c131', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-2877e8b0100443978ffd63db09831c38', 'network-name-dae50045fa634e6db0b665642793a0e9', 'ACTIVE', 'project-id-bbf994a93dbd4e0688cd0029ec4ffc46', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-e4d309260ec84880853aba976ac453b4', 'network-name-9a10d43fbc334d6d864405b712c6feba', 'ACTIVE', 'project-id-d1a05e0611c44ddd8e1cc8452fa7c085', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-e4d309260ec84880853aba976ac453b4, keys=<MagicMock id='139734078924304'>, name=network-name-9a10d43fbc334d6d864405b712c6feba, project_id=project-id-d1a05e0611c44ddd8e1cc8452fa7c085, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-d1a05e0611c44ddd8e1cc8452fa7c085>¶
-
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-e1eebc4e0a0d4c16a69384d4e47d6a2b', 'network-label-ea05ae6b006748fe8839c70c0e5c9406', '10.0.0.0/24'), ('network-id-05b5aac5665941d79cbf1f616f1ae1f0', 'network-label-49bb29eb187a41bb84a096d651ab9d71', '10.0.0.0/24'), ('network-id-09fd2ff680304b8486193ba994e8587e', 'network-label-8e7483ea8b3d48ada5084036097db741', '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-09fd2ff680304b8486193ba994e8587e, injected=False, keys=<MagicMock id='139734101121808'>, label=network-label-8e7483ea8b3d48ada5084036097db741, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-153f9091c7ed4c31996f6ee1a3965fbe, 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-580d326d2c224b02beeacbe8c6773571', 'network-name-75ae0b2d1b454d06a1c71be9ea77972a', 'project-id-3d4df63e88114fe2b2f9898e7c531385', '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-dc5417ce4f9249cd88db7d5a6c13f923', False, 'network-label-0219c76200b04125ac7ef3b29b881786', None, False, '255.255.255.0', None, None, 'project-id-dbf6ba845c7948ad8d3d3dddf2f689cc', 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-2dec7b5e159443e190460e3a6d2cb0da', '', '', 'ovs', 'normal', 'device-id-1624f6192eb5460fad03f6c232f35032', 'compute:nova', '', 'dns-name-4d6fd8188e524c49ba5e9528da385368', '', '', 'port-id-88fdeaa947fe492885bbec4275579cce', 'fa:16:3e:a9:4e:72', 'port-name-77a32ae70b9448808703f889b82eafd3', 'network-id-1d35fc8c4f3642088397f8fded5b43d2', True, 'project-id-ea9cf02693b3499abdbceb1b45f0a719', '', '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-ce99a304c47743dab87873a64b987443', 'router-name-4b66e0c6ee1a42c995753a80f79b508c', 'project-id-24e1bb4b10564d7b97e277a86791ef4c')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-ce99a304c47743dab87873a64b987443, keys=<MagicMock id='139734184944528'>, name=router-name-4b66e0c6ee1a42c995753a80f79b508c, routes=[], status=ACTIVE, tenant_id=project-id-24e1bb4b10564d7b97e277a86791ef4c>¶
-
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-446ebfa186b841b8a81f538125c0dff8', 'router-name-4996702fb1ed4b0aa7f887b65ee25ee9', 'ACTIVE', 'UP', False, False, 'project-id-e8858823aff9485cb327de8553da2214'), ('router-id-3793283eb0024feb957afbb2245e7654', 'router-name-5904214080e041ea93eefe5f564db3d9', 'ACTIVE', 'UP', False, False, 'project-id-cbab4bd9aa0246aeb882be097dcb1009'), ('router-id-a69f7a31aec14855a43a1d5e8928e6d3', 'router-name-61570cd7b82948aeb52bf6d1dcfafd7e', 'ACTIVE', 'UP', False, False, 'project-id-5ee09ca2733f4d1f8ec131b98370fb92')]¶
-
data_long
= [('router-id-446ebfa186b841b8a81f538125c0dff8', 'router-name-4996702fb1ed4b0aa7f887b65ee25ee9', 'ACTIVE', 'UP', False, False, 'project-id-e8858823aff9485cb327de8553da2214', [], '{}', ''), ('router-id-3793283eb0024feb957afbb2245e7654', 'router-name-5904214080e041ea93eefe5f564db3d9', 'ACTIVE', 'UP', False, False, 'project-id-cbab4bd9aa0246aeb882be097dcb1009', [], '{}', ''), ('router-id-a69f7a31aec14855a43a1d5e8928e6d3', 'router-name-61570cd7b82948aeb52bf6d1dcfafd7e', 'ACTIVE', 'UP', False, False, 'project-id-5ee09ca2733f4d1f8ec131b98370fb92', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-a69f7a31aec14855a43a1d5e8928e6d3, keys=<MagicMock id='139734184743952'>, name=router-name-61570cd7b82948aeb52bf6d1dcfafd7e, routes=[], status=ACTIVE, tenant_id=project-id-5ee09ca2733f4d1f8ec131b98370fb92>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-446ebfa186b841b8a81f538125c0dff8, keys=<MagicMock id='139734209401488'>, name=router-name-4996702fb1ed4b0aa7f887b65ee25ee9, routes=[], status=ACTIVE, tenant_id=project-id-e8858823aff9485cb327de8553da2214>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-3793283eb0024feb957afbb2245e7654, keys=<MagicMock id='139734202088720'>, name=router-name-5904214080e041ea93eefe5f564db3d9, routes=[], status=ACTIVE, tenant_id=project-id-cbab4bd9aa0246aeb882be097dcb1009>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-a69f7a31aec14855a43a1d5e8928e6d3, keys=<MagicMock id='139734184743952'>, name=router-name-61570cd7b82948aeb52bf6d1dcfafd7e, routes=[], status=ACTIVE, tenant_id=project-id-5ee09ca2733f4d1f8ec131b98370fb92>]¶
-
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-457ed6d9e5c94c3998d8fe05168e4150', 'router-name-6dc39470cfae48a98740352d62a3b458', 'project-id-4af34bb8784041ba8b496947401e75b8')¶
-
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-d1d0f342c9a14a55aba662593e640eeb', 'security-group-name-1085473cfeb1416790c382b0eb2f0971', 'security-group-description-dee6d8ad0d764412bf049eeecdd4b549'),)¶
-
expected_data_all_projects
= (('security-group-id-d1d0f342c9a14a55aba662593e640eeb', 'security-group-name-1085473cfeb1416790c382b0eb2f0971', 'security-group-description-dee6d8ad0d764412bf049eeecdd4b549', 'project-id-e70280d230ff4364ac9086dcdb3e7f11'),)¶
-
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-e8b107cff7bf4b6584e789cf378f7a71', 'security-group-name-d2d4aea3f6f24a429667dde51cffa2a0', 'security-group-description-acc8e878bbf1478ea379bfa930a55385', 'project-id-f90ff646fe9840a8a0d3f16da6c527ae'),)¶
-
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-081dd06ea050497290310d2d9c872cf3', 'icmp', '0.0.0.0/0', 'security-group-id-a838fb7bd4b142a284650ca732c9bd6b', '', '')¶
-
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-e20330078d714772a184743bfbdaeefe', None, None, 'project-id-f2ebc267409946af8e5d884452498b56', None, 'remote-security-group-id-c0e251a1e4c14784b4fc6ec9024e788a', None, 'security-group-id-b02e398fb6894e8b99874537580ff458')¶
-
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-44605ccdb09542f1abcb37321df7f295', 'subnet-name-494d8cce5cc24bcf8b7fad9fa3f8ee2a', 'network-id-b49f6dad52d9408781d2c521cd1180bf', '10.10.10.0/24'), ('subnet-id-4b9e1a4ad99141868690d6d50af9aaf7', 'subnet-name-129f5f5961ce4bfa9bab95cde46cf1d1', 'network-id-1917a9ee0208432ca9c5366d708586ba', '10.10.10.0/24'), ('subnet-id-9537f845db1445babd1e7fa7d5d5c505', 'subnet-name-4be5da2065c04c518f0fa78eb35c5658', 'network-id-d208061b160944f683e783f4c685321b', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-44605ccdb09542f1abcb37321df7f295', 'subnet-name-494d8cce5cc24bcf8b7fad9fa3f8ee2a', 'network-id-b49f6dad52d9408781d2c521cd1180bf', '10.10.10.0/24', 'project-id-9cedbfcee18f461eb1fcfb252c48158a', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-4b9e1a4ad99141868690d6d50af9aaf7', 'subnet-name-129f5f5961ce4bfa9bab95cde46cf1d1', 'network-id-1917a9ee0208432ca9c5366d708586ba', '10.10.10.0/24', 'project-id-8021c278aa014964a9ce55b266acc1d6', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-9537f845db1445babd1e7fa7d5d5c505', 'subnet-name-4be5da2065c04c518f0fa78eb35c5658', 'network-id-d208061b160944f683e783f4c685321b', '10.10.10.0/24', 'project-id-bf29ffdb1b17405a860e6f39c3bb3c29', 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-9537f845db1445babd1e7fa7d5d5c505, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='139734066540304'>, name=subnet-name-4be5da2065c04c518f0fa78eb35c5658, network_id=network-id-d208061b160944f683e783f4c685321b, project_id=project-id-bf29ffdb1b17405a860e6f39c3bb3c29, subnetpool_id=None, tenant_id=project-id-bf29ffdb1b17405a860e6f39c3bb3c29>¶
-
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-e797353eed2f42ea8050fd318124c440', '4', 'None', 'None', 'subnet-name-7d44c17702ac492aa99aec7b17b93cb5', 'network-id-e55bdc90855543e394bad4ffa1e03b45', 'project-id-c402cfedf75a401cbce6017f7e28ca6a', '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-4e17ba6f437146978ea838ff0103dc8a', 'subnet-pool-name-715919c1d14a4929b1f4592842be85f4', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-07ff8e247efc4a0ba388dc7b8dd71025', 'subnet-pool-name-475d787338a04200941180097594841a', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-d1a14e1833e44355b349c4cdad744526', 'subnet-pool-name-d48c4098b31e41bd9250a9aa9bf9b2a1', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-4e17ba6f437146978ea838ff0103dc8a', 'subnet-pool-name-715919c1d14a4929b1f4592842be85f4', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-a78f47a2a01d4fcf83281afaf1ee02b4'), ('subnet-pool-id-07ff8e247efc4a0ba388dc7b8dd71025', 'subnet-pool-name-475d787338a04200941180097594841a', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-73b84c9b3b8248a085dc399341a58b22'), ('subnet-pool-id-d1a14e1833e44355b349c4cdad744526', 'subnet-pool-name-d48c4098b31e41bd9250a9aa9bf9b2a1', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-4e3d3579b4a8402c9f2d13c2866748a7')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-4e3d3579b4a8402c9f2d13c2866748a7, default_prefixlen=8, default_quota=None, id=subnet-pool-id-d1a14e1833e44355b349c4cdad744526, ip_version=4, is_default=False, keys=<MagicMock id='139734102719760'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-d48c4098b31e41bd9250a9aa9bf9b2a1, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-03be70168e124fd4a1ad70977b6fb670, shared=False, tenant_id=project-id-03be70168e124fd4a1ad70977b6fb670>¶
-
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-8fefdee6ff4f4fd295240734bb5358c8', 8, None, 'subnet-pool-id-20fd1466fefc4ddfabd3311919d5fac6', 4, False, 32, 8, 'subnet-pool-name-0eec15770b884eeda778a0539a20ffd1', '10.0.0.0/24, 10.1.0.0/24', 'project-id-aa1052edd96e459197fa842d56068d27', 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
()¶
-