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-3043fc92aef04e159fa09f81eff44558, instance_id=server-id-cf42c9d5d1d049348de61c6baca4f3c6, 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-27683d93d5a448748f6a7c26b8dc4648, id=floating-ip-id-7eada5906b8e472e892c7a7d09dfe4fc, keys=<MagicMock id='140198865500880'>, port_id=port-id-0066e689322146e1ab8514f9865a39f4, project_id=project-id-4b3717053070462ea2e1d6c801d41d25, router_id=router-id-81586d3feee94e09a1bf5ecb7c7685fd, status=DOWN, tenant_id=project-id-4b3717053070462ea2e1d6c801d41d25>¶
-
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-457b1bf9fbf3438aa8e56d39878285b6', '1.0.9.0', '2.0.9.0', 'server-id-fbe4c21252f64f0391d08581be8d5030', 'public'), ('floating-ip-id-f6ded779c5e24e9395a06b29eaac3c28', '1.0.9.0', '2.0.9.0', 'server-id-d50b8e68373340058984195cfc002375', 'public'), ('floating-ip-id-826f30d2bebc41729b743898e0a143ad', '1.0.9.0', '2.0.9.0', 'server-id-d92a6f10cb774e6faa3a980030ae77ba', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-457b1bf9fbf3438aa8e56d39878285b6, instance_id=server-id-fbe4c21252f64f0391d08581be8d5030, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-f6ded779c5e24e9395a06b29eaac3c28, instance_id=server-id-d50b8e68373340058984195cfc002375, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-826f30d2bebc41729b743898e0a143ad, instance_id=server-id-d92a6f10cb774e6faa3a980030ae77ba, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-826f30d2bebc41729b743898e0a143ad, instance_id=server-id-d92a6f10cb774e6faa3a980030ae77ba, 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-967f1a9d669841eca49ce66c768c67fc', '1.0.9.0', '2.0.9.0', 'port-id-8d22cfa934b848d181600f3ce7facbd5'), ('floating-ip-id-80381c962b5841f1a5815f8278cf79dd', '1.0.9.0', '2.0.9.0', 'port-id-3919006857b94fdb8b21695b1563447e'), ('floating-ip-id-e908f768e163425eae9eacca65bf7d81', '1.0.9.0', '2.0.9.0', 'port-id-f58069e104834671b0c6653e823b3dd4')]¶
-
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-5e398dee15194ddda6f58ce0f9139aa3, id=floating-ip-id-967f1a9d669841eca49ce66c768c67fc, keys=<MagicMock id='140198868483856'>, port_id=port-id-8d22cfa934b848d181600f3ce7facbd5, project_id=project-id-0ccb264883054f119e964b66deb357d9, router_id=router-id-485df703a78949828a45063857fbc803, status=DOWN, tenant_id=project-id-0ccb264883054f119e964b66deb357d9>, <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-7377fd7db08047d9adfcebdeace3f604, id=floating-ip-id-80381c962b5841f1a5815f8278cf79dd, keys=<MagicMock id='140198868718416'>, port_id=port-id-3919006857b94fdb8b21695b1563447e, project_id=project-id-f153e1e3c23f4bb5addd95a20652f213, router_id=router-id-ea1906aa19ab4742832d8dc9c8a325ab, status=DOWN, tenant_id=project-id-f153e1e3c23f4bb5addd95a20652f213>, <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-38ad82610e9447dfa81c25034e73637d, id=floating-ip-id-e908f768e163425eae9eacca65bf7d81, keys=<MagicMock id='140198851344144'>, port_id=port-id-f58069e104834671b0c6653e823b3dd4, project_id=project-id-183f6311e9f74fa2b7b5290e234aad13, router_id=router-id-6b011149008444a999c46843a0eec70b, status=DOWN, tenant_id=project-id-183f6311e9f74fa2b7b5290e234aad13>]¶
-
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-38ad82610e9447dfa81c25034e73637d, id=floating-ip-id-e908f768e163425eae9eacca65bf7d81, keys=<MagicMock id='140198851344144'>, port_id=port-id-f58069e104834671b0c6653e823b3dd4, project_id=project-id-183f6311e9f74fa2b7b5290e234aad13, router_id=router-id-6b011149008444a999c46843a0eec70b, status=DOWN, tenant_id=project-id-183f6311e9f74fa2b7b5290e234aad13>¶
-
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-2e2afb754cd74d6b955dfdfe1a961e99', 'server-id-f5838ec67fa74380b9d9f496fc6023fe', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-2e2afb754cd74d6b955dfdfe1a961e99, instance_id=server-id-f5838ec67fa74380b9d9f496fc6023fe, 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-8dce6b7d686e4a18ae1c09696773f04a', 'floating-ip-id-401da10875fb4153945743945670a88d', 'port-id-333392d8af02468aa0419d616ed17e30', 'project-id-02cccb32511b4f6192c954f947b39b52', 'router-id-7ecddf7827bd466f8b105a6ac18cb33f', '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-8dce6b7d686e4a18ae1c09696773f04a, id=floating-ip-id-401da10875fb4153945743945670a88d, keys=<MagicMock id='140198851398288'>, port_id=port-id-333392d8af02468aa0419d616ed17e30, project_id=project-id-02cccb32511b4f6192c954f947b39b52, router_id=router-id-7ecddf7827bd466f8b105a6ac18cb33f, status=DOWN, tenant_id=project-id-02cccb32511b4f6192c954f947b39b52>¶
-
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-8767825324ef47298c59da36dad68ed2', False, 'network-label-dbe97bd695e04150924b0085f9ab45d6', None, False, '255.255.255.0', None, None, 'project-id-a1c646c0603c48058f599bab4d5795c4', 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-b5d286b281d14a8ba06192ff99b427ec', 'network-name-f17894bb9e0346a3a7d4aa1d79e89d4a', '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-b740c96f1e91441b9bc2b0ca57ca2e6d', 'network-name-61c88e32fcf146f39c1a82734555fdfb', '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-c5fc9964f022496b8371be934280c5b3', 'network-name-9d0da3bdf04e4e6eb06618adae019969', 'a, b'), ('network-id-14328a71571a47219ef90ad76802c524', 'network-name-8dcffd52881f472abb2a155138e1f7d7', 'a, b'), ('network-id-e76386baaa3c43f38e4799f9c7c17774', 'network-name-8d6cbdd956474d0493662c4ab0b18976', 'a, b')]¶
-
data_long
= [('network-id-c5fc9964f022496b8371be934280c5b3', 'network-name-9d0da3bdf04e4e6eb06618adae019969', 'ACTIVE', 'project-id-8da37632f37e4d5ebb0d9f1a1cb888b6', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-14328a71571a47219ef90ad76802c524', 'network-name-8dcffd52881f472abb2a155138e1f7d7', 'ACTIVE', 'project-id-911a54eec95e4f6a840db6c2c2d990ec', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-e76386baaa3c43f38e4799f9c7c17774', 'network-name-8d6cbdd956474d0493662c4ab0b18976', 'ACTIVE', 'project-id-090252b6fae6418c83da59186a3cf5d0', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-e76386baaa3c43f38e4799f9c7c17774, keys=<MagicMock id='140198850957968'>, name=network-name-8d6cbdd956474d0493662c4ab0b18976, project_id=project-id-090252b6fae6418c83da59186a3cf5d0, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-090252b6fae6418c83da59186a3cf5d0>¶
-
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-24a29e69e4b8491c858a7189a829a9dc', 'network-label-e0ca90bf8c134ef2a1f1be50be338b24', '10.0.0.0/24'), ('network-id-a58672c2a3d74b39b0162dec1ad36e5e', 'network-label-8d2c0bb0140e421eace6f9bb8b026554', '10.0.0.0/24'), ('network-id-efa0d4f03a89438b826b17cbef8add0c', 'network-label-bf91286940414266ab512ba850bf0dce', '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-efa0d4f03a89438b826b17cbef8add0c, injected=False, keys=<MagicMock id='140198886358544'>, label=network-label-bf91286940414266ab512ba850bf0dce, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-7086426f487a40169a563d932a7a8dfc, 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-b25b3f7693c44eb49109a21af7fbac82', 'network-name-710302bb03b24d9b9e9c5b218341e0b1', 'project-id-5ae02b2c6df449c8ad9151533c3c3cca', '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-680b0bd07f2c45a486d5c776e3ae72d3', False, 'network-label-be5d1451cbe842d3b23ff16fd7c9848b', None, False, '255.255.255.0', None, None, 'project-id-c57cfd1d26364882bec69cbefe3f1ec8', 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-e2e393c7da634c4793d5b3c7aeba3090', '', '', 'ovs', 'normal', 'device-id-98308382a2244f35a45c3aa323bc14b2', 'compute:nova', '', 'dns-name-0bab4e600bdd443b8a3aa4d6e5229b7a', '', '', 'port-id-996d97b05ec44369889e3fe039e4b970', 'fa:16:3e:a9:4e:72', 'port-name-f798ec2bda854cd5986c6fd2e0926b3a', 'network-id-fd62b16a2f1547d2bc9b0081add6501d', True, 'project-id-837a1dd843a944e0aabfa414ebbf2fcc', '', '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-0a763993f460448ab47997a81cad979f', 'router-name-f573cd56427844ba8a43e1610c6d0f98', 'project-id-8cc62a2ec3a24fd78666f90a18449bce')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-0a763993f460448ab47997a81cad979f, keys=<MagicMock id='140198846247120'>, name=router-name-f573cd56427844ba8a43e1610c6d0f98, routes=[], status=ACTIVE, tenant_id=project-id-8cc62a2ec3a24fd78666f90a18449bce>¶
-
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-421551e6a4b14c518358d5360d51c7ea', 'router-name-5f6c1df9c9bd41f1ab16db7ea2a82412', 'ACTIVE', 'UP', False, False, 'project-id-d0f6a5fc904549bc9b548813dcfa74af'), ('router-id-771027d5cb2342ccb4237bebaca4fbd6', 'router-name-2835a4e7c6d4445da6f55353a01481c1', 'ACTIVE', 'UP', False, False, 'project-id-adb0263f906c476cbf3ebea8fe2b24a2'), ('router-id-9c84fe3307ed489495d6221ee1822742', 'router-name-38cf848e8559401f835bb0ee9079bc04', 'ACTIVE', 'UP', False, False, 'project-id-861a50eeb9fc4383b398502d6eb77494')]¶
-
data_long
= [('router-id-421551e6a4b14c518358d5360d51c7ea', 'router-name-5f6c1df9c9bd41f1ab16db7ea2a82412', 'ACTIVE', 'UP', False, False, 'project-id-d0f6a5fc904549bc9b548813dcfa74af', [], '{}', ''), ('router-id-771027d5cb2342ccb4237bebaca4fbd6', 'router-name-2835a4e7c6d4445da6f55353a01481c1', 'ACTIVE', 'UP', False, False, 'project-id-adb0263f906c476cbf3ebea8fe2b24a2', [], '{}', ''), ('router-id-9c84fe3307ed489495d6221ee1822742', 'router-name-38cf848e8559401f835bb0ee9079bc04', 'ACTIVE', 'UP', False, False, 'project-id-861a50eeb9fc4383b398502d6eb77494', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-9c84fe3307ed489495d6221ee1822742, keys=<MagicMock id='140198846519824'>, name=router-name-38cf848e8559401f835bb0ee9079bc04, routes=[], status=ACTIVE, tenant_id=project-id-861a50eeb9fc4383b398502d6eb77494>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-421551e6a4b14c518358d5360d51c7ea, keys=<MagicMock id='140198846476816'>, name=router-name-5f6c1df9c9bd41f1ab16db7ea2a82412, routes=[], status=ACTIVE, tenant_id=project-id-d0f6a5fc904549bc9b548813dcfa74af>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-771027d5cb2342ccb4237bebaca4fbd6, keys=<MagicMock id='140198846473744'>, name=router-name-2835a4e7c6d4445da6f55353a01481c1, routes=[], status=ACTIVE, tenant_id=project-id-adb0263f906c476cbf3ebea8fe2b24a2>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-9c84fe3307ed489495d6221ee1822742, keys=<MagicMock id='140198846519824'>, name=router-name-38cf848e8559401f835bb0ee9079bc04, routes=[], status=ACTIVE, tenant_id=project-id-861a50eeb9fc4383b398502d6eb77494>]¶
-
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-1ef24d9783ce4a2b804ca29f27560f12', 'router-name-7f9aef37c1e8439e95fce0a3a5704753', 'project-id-bec4c028200a408ca375c02e5c62a303')¶
-
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-ab5cf0a2c2074bbb98676601b4fa8405', 'security-group-name-7e259b3df0ae4654b481be9072b17e6d', 'security-group-description-cea0e4369c044c4ca1fd2bcaee6c4f3f'),)¶
-
expected_data_all_projects
= (('security-group-id-ab5cf0a2c2074bbb98676601b4fa8405', 'security-group-name-7e259b3df0ae4654b481be9072b17e6d', 'security-group-description-cea0e4369c044c4ca1fd2bcaee6c4f3f', 'project-id-23d39bec71284dc7aaba8d4282d5f541'),)¶
-
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-a8f94e963d3245109d14b3a7b67fad0f', 'security-group-name-b887c88464864099b4b3d4db0eb1edfa', 'security-group-description-a8116aea6116468e8f11e58c5eaa094b', 'project-id-d20b6d0a4b514a93bf05dedaf42b8452'),)¶
-
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-7dbeee49a273466e8f53c7e38d540c26', 'icmp', '0.0.0.0/0', 'security-group-id-46669351e8664479a668b0233ad94ec8', '', '')¶
-
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-26d6e2d3dc314f808da739730480f318', None, None, 'project-id-031f4abd773d4f0e9632203fc50b8107', None, 'remote-security-group-id-0a7fe68cc1454013b5b0d34264a13398', None, 'security-group-id-17977f730a8e43a2873532eaf4d4dee8')¶
-
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-3e5d8930555c493b99a39de5200113b3', 'subnet-name-5b0dda25776347d38096c7ee9e3f7c33', 'network-id-e65d3d56bf90484185b917296a787637', '10.10.10.0/24'), ('subnet-id-238e8f9d65c94e52beb4e68c25091d13', 'subnet-name-c91c545781b34857ac70776bc219dbd4', 'network-id-b20ae3c2a0784258ae5a761dad9b083c', '10.10.10.0/24'), ('subnet-id-2142ef57be064cf8b6512189862be34a', 'subnet-name-fc6ce017672842c59ea58ed19902c505', 'network-id-b07593ddf55d4241af1d1ff1e5f01c06', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-3e5d8930555c493b99a39de5200113b3', 'subnet-name-5b0dda25776347d38096c7ee9e3f7c33', 'network-id-e65d3d56bf90484185b917296a787637', '10.10.10.0/24', 'project-id-5ae811b9228d4811ac1d404dfe533d16', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-238e8f9d65c94e52beb4e68c25091d13', 'subnet-name-c91c545781b34857ac70776bc219dbd4', 'network-id-b20ae3c2a0784258ae5a761dad9b083c', '10.10.10.0/24', 'project-id-305e3cb593bf43dba36ac3c3c09049f6', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-2142ef57be064cf8b6512189862be34a', 'subnet-name-fc6ce017672842c59ea58ed19902c505', 'network-id-b07593ddf55d4241af1d1ff1e5f01c06', '10.10.10.0/24', 'project-id-70fde5db2b7e41e19c2d9c974e6033a5', 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-2142ef57be064cf8b6512189862be34a, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='140198874268880'>, name=subnet-name-fc6ce017672842c59ea58ed19902c505, network_id=network-id-b07593ddf55d4241af1d1ff1e5f01c06, project_id=project-id-70fde5db2b7e41e19c2d9c974e6033a5, subnetpool_id=None, tenant_id=project-id-70fde5db2b7e41e19c2d9c974e6033a5>¶
-
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-bb8399c9ace542a49dcaca20709bceb4', '4', 'None', 'None', 'subnet-name-632fb86dd7714207b0faed529bc57d6e', 'network-id-ced0d226954b469a99f1b4dcaf100e38', 'project-id-a2f331d0ed3c42bb937635f1507e4885', '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-c39855c0b2344eab867c56afd27c87c6', 'subnet-pool-name-32fa2bb455574acd8a832e23774bceae', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-e3683bb59e5d469990e0b678e0d333ce', 'subnet-pool-name-675fb754bb00483a80e403c73bb45254', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-a599dff89cf7470084825a12ce4aba68', 'subnet-pool-name-fa6966eaf6814a3b912727b8e5ac8ddf', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-c39855c0b2344eab867c56afd27c87c6', 'subnet-pool-name-32fa2bb455574acd8a832e23774bceae', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-d6954246f4dd4d4b97bc2f1a2c3e5b5f'), ('subnet-pool-id-e3683bb59e5d469990e0b678e0d333ce', 'subnet-pool-name-675fb754bb00483a80e403c73bb45254', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-d0b7e9d3fb0047f28ffb7e217e58be00'), ('subnet-pool-id-a599dff89cf7470084825a12ce4aba68', 'subnet-pool-name-fa6966eaf6814a3b912727b8e5ac8ddf', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-31ae0806bc7d4852b35a1c1d3043ce38')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-31ae0806bc7d4852b35a1c1d3043ce38, default_prefixlen=8, default_quota=None, id=subnet-pool-id-a599dff89cf7470084825a12ce4aba68, ip_version=4, is_default=False, keys=<MagicMock id='140198880387728'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-fa6966eaf6814a3b912727b8e5ac8ddf, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-b7ad5ef7d5f443a1b8b60b56d172e998, shared=False, tenant_id=project-id-b7ad5ef7d5f443a1b8b60b56d172e998>¶
-
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-cc8e63491309415c9010c19f41531e2a', 8, None, 'subnet-pool-id-b7b3a904041246a383555d00dc899fd1', 4, False, 32, 8, 'subnet-pool-name-b42d14743af2442d80fef19f61f3dad8', '10.0.0.0/24, 10.1.0.0/24', 'project-id-52551c8c292741d88c2e8e5afcb6b96c', 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
()¶
-