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-f03c63e3846342fe9a9dcb0d212b666e, instance_id=server-id-da5ca8b158ff4ed1a118eedab9401679, 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-6f4ae0f605404498b707bd267f9b76c2, id=floating-ip-id-e23853cbc1c840eca58a53748ccee861, keys=<MagicMock id='4049931564'>, port_id=port-id-1dda419dced94e748ddd4c25f5ab67ad, project_id=project-id-a3fe9115382a4259b14c199fa18d8a77, router_id=router-id-80791988a7db4d43b57b760c1ed886fd, status=DOWN, tenant_id=project-id-a3fe9115382a4259b14c199fa18d8a77>¶
-
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-b151e5e1794e4cec807e3236a7c0ac95', '1.0.9.0', '2.0.9.0', 'server-id-bde257aa40c0446fa0c3cd5b4d3b5f12', 'public'), ('floating-ip-id-39af86f350744faea4821909467243dd', '1.0.9.0', '2.0.9.0', 'server-id-2ce1f136d8dd4f68ad14e84e5385dd93', 'public'), ('floating-ip-id-18b1a1dbf78e48a3a7e3a677a4a3ac42', '1.0.9.0', '2.0.9.0', 'server-id-de4b8c26083e40ab86ab8a69b887cde4', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-b151e5e1794e4cec807e3236a7c0ac95, instance_id=server-id-bde257aa40c0446fa0c3cd5b4d3b5f12, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-39af86f350744faea4821909467243dd, instance_id=server-id-2ce1f136d8dd4f68ad14e84e5385dd93, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-18b1a1dbf78e48a3a7e3a677a4a3ac42, instance_id=server-id-de4b8c26083e40ab86ab8a69b887cde4, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-18b1a1dbf78e48a3a7e3a677a4a3ac42, instance_id=server-id-de4b8c26083e40ab86ab8a69b887cde4, 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-91ad33367b7341acbfc0c7eca61eb1de', '1.0.9.0', '2.0.9.0', 'port-id-da2b528d82ff4140b76d9b8a6a1e4521'), ('floating-ip-id-4e315bf304314f3695eac1fae6aad6fd', '1.0.9.0', '2.0.9.0', 'port-id-5ad13b916ceb467b9f7c29be5ce5b42b'), ('floating-ip-id-9964ba9d259d456eb5ed3063a2a087c7', '1.0.9.0', '2.0.9.0', 'port-id-9652e81f36db4ac4b181c5d240dac772')]¶
-
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-4ec8850b006540d08fa0dc41450c2666, id=floating-ip-id-91ad33367b7341acbfc0c7eca61eb1de, keys=<MagicMock id='4043857164'>, port_id=port-id-da2b528d82ff4140b76d9b8a6a1e4521, project_id=project-id-429a8e63ac5d418b8d9e0de166c5c4c2, router_id=router-id-6efb180d5fba486a8efc678cbd7e9eb7, status=DOWN, tenant_id=project-id-429a8e63ac5d418b8d9e0de166c5c4c2>, <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-c4a37b5780af49e28698fcafe3834952, id=floating-ip-id-4e315bf304314f3695eac1fae6aad6fd, keys=<MagicMock id='4046676172'>, port_id=port-id-5ad13b916ceb467b9f7c29be5ce5b42b, project_id=project-id-01094ae5655c4de3be05f3d29c0f953e, router_id=router-id-0d65a56993c8469b8b287c42dc6023f9, status=DOWN, tenant_id=project-id-01094ae5655c4de3be05f3d29c0f953e>, <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-0da995f1e4f2489fb9ee57d1478e7c5b, id=floating-ip-id-9964ba9d259d456eb5ed3063a2a087c7, keys=<MagicMock id='4046595948'>, port_id=port-id-9652e81f36db4ac4b181c5d240dac772, project_id=project-id-7944ef3aae3d456c850237bec1af72b2, router_id=router-id-893ec1cbd48045c8898e513a4cca30d5, status=DOWN, tenant_id=project-id-7944ef3aae3d456c850237bec1af72b2>]¶
-
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-0da995f1e4f2489fb9ee57d1478e7c5b, id=floating-ip-id-9964ba9d259d456eb5ed3063a2a087c7, keys=<MagicMock id='4046595948'>, port_id=port-id-9652e81f36db4ac4b181c5d240dac772, project_id=project-id-7944ef3aae3d456c850237bec1af72b2, router_id=router-id-893ec1cbd48045c8898e513a4cca30d5, status=DOWN, tenant_id=project-id-7944ef3aae3d456c850237bec1af72b2>¶
-
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-d7432c6306394d77ab2e0f67af1a0730', 'server-id-92bb4460c5864ad2b9eba06c410c8bb1', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-d7432c6306394d77ab2e0f67af1a0730, instance_id=server-id-92bb4460c5864ad2b9eba06c410c8bb1, 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-a3beaf2131ea48318e7bc92496c8e2e7', 'floating-ip-id-b0ad9b7abd4c44269872fe938035d378', 'port-id-fba837c78038457fa70ccf995cd2a500', 'project-id-013d8d9e1eab40c4b6a72da63e3634e4', 'router-id-2a9dd26463f74717aa42ea93618e1e89', '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-a3beaf2131ea48318e7bc92496c8e2e7, id=floating-ip-id-b0ad9b7abd4c44269872fe938035d378, keys=<MagicMock id='4049995788'>, port_id=port-id-fba837c78038457fa70ccf995cd2a500, project_id=project-id-013d8d9e1eab40c4b6a72da63e3634e4, router_id=router-id-2a9dd26463f74717aa42ea93618e1e89, status=DOWN, tenant_id=project-id-013d8d9e1eab40c4b6a72da63e3634e4>¶
-
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-725158664fa143609a0872c59ea1162c', False, 'network-label-7564207ef2ff4120bd0e0bcd3826478e', None, False, '255.255.255.0', None, None, 'project-id-f77a6216221846e6a986d5670afee2de', 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-e17a64730078413faf93eb98a2a5115a', 'network-name-c60013ded933406fa1b5c876f363c010', '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-ab15757b4e4d4895b26b26d04a020a04', 'network-name-4be09578ea674673925950886b65008a', '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-0748d162deb346b69c1704eadc18bc8e', 'network-name-ca89bbc1698b415c8dc31b4117127d97', 'a, b'), ('network-id-8e8d96b5aba143019270513f19ebd874', 'network-name-f1cdd92fd40240cea49c4d3b05fb3744', 'a, b'), ('network-id-b99014a1bd63420ba9d48657c6aa9428', 'network-name-f8d230b39e3d402983efa9f228f59d48', 'a, b')]¶
-
data_long
= [('network-id-0748d162deb346b69c1704eadc18bc8e', 'network-name-ca89bbc1698b415c8dc31b4117127d97', 'ACTIVE', 'project-id-e46c8742c7ef41aabb24b84159339ef5', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-8e8d96b5aba143019270513f19ebd874', 'network-name-f1cdd92fd40240cea49c4d3b05fb3744', 'ACTIVE', 'project-id-788a2291a4c34811ad4dadc61e8c918e', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-b99014a1bd63420ba9d48657c6aa9428', 'network-name-f8d230b39e3d402983efa9f228f59d48', 'ACTIVE', 'project-id-e91958f11f184607a921f55fcec33605', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-b99014a1bd63420ba9d48657c6aa9428, keys=<MagicMock id='4058546476'>, name=network-name-f8d230b39e3d402983efa9f228f59d48, project_id=project-id-e91958f11f184607a921f55fcec33605, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-e91958f11f184607a921f55fcec33605>¶
-
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-aff352b856cc4ab2bddcb48bed27bf7b', 'network-label-f69f58ecbdc64f40a8e2944c59950148', '10.0.0.0/24'), ('network-id-35e0656f804a49c3822089132a3d6c8f', 'network-label-f9ffce6eeb8e4553b14804bf3a6b4657', '10.0.0.0/24'), ('network-id-e24f56fa2b7048db989e0d2c1e1cbed9', 'network-label-1e1bcc15dfe84cb796d9b99fec319585', '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-e24f56fa2b7048db989e0d2c1e1cbed9, injected=False, keys=<MagicMock id='4112308140'>, label=network-label-1e1bcc15dfe84cb796d9b99fec319585, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-7cd7f35e92be4881bef9c1678b1a8cbe, 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-3af62ca171ec4235b121c05b0084541e', 'network-name-4b9a6d078d28496d8532bedcf39d5c7f', 'project-id-f4982fc6e9684d658e984bd3246b9b10', '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-7cdbe170db794dcebd30aeb65b96dd49', False, 'network-label-1f5af17abc104834a30ea071f5e5d3ac', None, False, '255.255.255.0', None, None, 'project-id-7420ce6e17974ab59f19c3867d5645fd', 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-1890cb32a59e42aaa071b714805cebd8', '', '', 'ovs', 'normal', 'device-id-9a66f5564d9d4f88b7f7aa7bb0369e5a', 'compute:nova', '', 'dns-name-51863fffe46846bb89aced7dacb94fe3', '', '', 'port-id-c63bc66cb2ce43ca9575fac9721cf34c', 'fa:16:3e:a9:4e:72', 'port-name-471bd8234892491db7a1937bf0afc51b', 'network-id-a21049a641f24e14b76431a4af65a97a', True, 'project-id-505521da96d1488a9a2ffd43e71c2882', '', '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-13b8624c791b4676916e08538c2a286a', 'router-name-f82f8d5f5328448a969207270c585024', 'project-id-435a5afcb1aa480da101fa780d258257')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-13b8624c791b4676916e08538c2a286a, keys=<MagicMock id='4049545388'>, name=router-name-f82f8d5f5328448a969207270c585024, routes=[], status=ACTIVE, tenant_id=project-id-435a5afcb1aa480da101fa780d258257>¶
-
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-995c16636b744cd4b46391014d872956', 'router-name-81c0f1f9699f4a949ab4f11deaf2992c', 'ACTIVE', 'UP', False, False, 'project-id-f10c473479af4c9cb54c91a9f3a83119'), ('router-id-25a37b2bf21243ca85879ccb55e383e1', 'router-name-2cc960cdd2c14c06aba15fef52426f8f', 'ACTIVE', 'UP', False, False, 'project-id-351085f2d4644bed8e93b206955d0169'), ('router-id-4d30642802ba405ab385a96d8225e0b5', 'router-name-f9067d463e684688b483f780a4c94d0d', 'ACTIVE', 'UP', False, False, 'project-id-dc5a16674458472794701a1244582f15')]¶
-
data_long
= [('router-id-995c16636b744cd4b46391014d872956', 'router-name-81c0f1f9699f4a949ab4f11deaf2992c', 'ACTIVE', 'UP', False, False, 'project-id-f10c473479af4c9cb54c91a9f3a83119', [], '{}', ''), ('router-id-25a37b2bf21243ca85879ccb55e383e1', 'router-name-2cc960cdd2c14c06aba15fef52426f8f', 'ACTIVE', 'UP', False, False, 'project-id-351085f2d4644bed8e93b206955d0169', [], '{}', ''), ('router-id-4d30642802ba405ab385a96d8225e0b5', 'router-name-f9067d463e684688b483f780a4c94d0d', 'ACTIVE', 'UP', False, False, 'project-id-dc5a16674458472794701a1244582f15', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-4d30642802ba405ab385a96d8225e0b5, keys=<MagicMock id='4054434284'>, name=router-name-f9067d463e684688b483f780a4c94d0d, routes=[], status=ACTIVE, tenant_id=project-id-dc5a16674458472794701a1244582f15>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-995c16636b744cd4b46391014d872956, keys=<MagicMock id='4047539596'>, name=router-name-81c0f1f9699f4a949ab4f11deaf2992c, routes=[], status=ACTIVE, tenant_id=project-id-f10c473479af4c9cb54c91a9f3a83119>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-25a37b2bf21243ca85879ccb55e383e1, keys=<MagicMock id='4054400716'>, name=router-name-2cc960cdd2c14c06aba15fef52426f8f, routes=[], status=ACTIVE, tenant_id=project-id-351085f2d4644bed8e93b206955d0169>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-4d30642802ba405ab385a96d8225e0b5, keys=<MagicMock id='4054434284'>, name=router-name-f9067d463e684688b483f780a4c94d0d, routes=[], status=ACTIVE, tenant_id=project-id-dc5a16674458472794701a1244582f15>]¶
-
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-e8517ffd047e4a3c8eacc74d3210bacd', 'router-name-0f66bc9176dc435486b1ad74cf093a3f', 'project-id-844e475949854957a7b6e93c95308c2c')¶
-
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-2587c4d5e1074f87a2d29be0f0f1633e', 'security-group-name-8cbfa7056e124fd29748f1ef50bf1878', 'security-group-description-eaffc8d7dcd24c06919792eb2eb0fcb1'),)¶
-
expected_data_all_projects
= (('security-group-id-2587c4d5e1074f87a2d29be0f0f1633e', 'security-group-name-8cbfa7056e124fd29748f1ef50bf1878', 'security-group-description-eaffc8d7dcd24c06919792eb2eb0fcb1', 'project-id-2fc34c786ae24db4bfd4ccc13e5e5215'),)¶
-
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-8268405090d043129457693d6822c379', 'security-group-name-f75ade06214b4161aa48939208342915', 'security-group-description-98e05ce0276b4f81838e2a2e2b358137', 'project-id-cd23034c3507495ba7e85d9ba40346ec'),)¶
-
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-9fafed5576b84572b8ee71ab970fdd6d', 'icmp', '0.0.0.0/0', 'security-group-id-591d6c7b049a45d581ebe3ace7737b81', '', '')¶
-
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-f0339ffe56cf4c439c59e382a67340f1', None, None, 'project-id-401c8553afe640eba4c3e805bdce569c', None, 'remote-security-group-id-65b28ae95e8d4a178496a932eb2d44b9', None, 'security-group-id-64aa495726844faf8a8e18385e3f9217')¶
-
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-2d5ab0d2aafa406e96d720da3518f3a0', 'subnet-name-8e5f45490fc545f9b688c311e4b2190b', 'network-id-4f4bc8ae710647bbbd29050bfa7250a7', '10.10.10.0/24'), ('subnet-id-9e627d90610140f4bbcd770e85bc7afb', 'subnet-name-d53f3f8c54ed469286516b4cf1ad5286', 'network-id-85b873143db14ee39e27521d7f79c747', '10.10.10.0/24'), ('subnet-id-73b71435575f48bca36fd5f8cae6f67a', 'subnet-name-2b7b7c8bd7ae435184ceb16eb3e51b12', 'network-id-f9c51400172446a2af7dcc8f822b5a4d', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-2d5ab0d2aafa406e96d720da3518f3a0', 'subnet-name-8e5f45490fc545f9b688c311e4b2190b', 'network-id-4f4bc8ae710647bbbd29050bfa7250a7', '10.10.10.0/24', 'project-id-381c15fdc90c49d0bb72b10043f68ec2', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-9e627d90610140f4bbcd770e85bc7afb', 'subnet-name-d53f3f8c54ed469286516b4cf1ad5286', 'network-id-85b873143db14ee39e27521d7f79c747', '10.10.10.0/24', 'project-id-71bf6ed9436c45caa1f24d7169a335fa', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-73b71435575f48bca36fd5f8cae6f67a', 'subnet-name-2b7b7c8bd7ae435184ceb16eb3e51b12', 'network-id-f9c51400172446a2af7dcc8f822b5a4d', '10.10.10.0/24', 'project-id-41eabcf0248f41a3902a803289e32e4e', 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-73b71435575f48bca36fd5f8cae6f67a, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='4038561740'>, name=subnet-name-2b7b7c8bd7ae435184ceb16eb3e51b12, network_id=network-id-f9c51400172446a2af7dcc8f822b5a4d, project_id=project-id-41eabcf0248f41a3902a803289e32e4e, subnetpool_id=None, tenant_id=project-id-41eabcf0248f41a3902a803289e32e4e>¶
-
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-a907b2afdc5e4fd5b0d61d6a3da0b9e0', '4', 'None', 'None', 'subnet-name-b01e4fd6f6fc4f32b0dafd7462f29d32', 'network-id-56e654002b0743398a9be18e7e73b0b9', 'project-id-7804ce91a92d4c33bd8e4ca3551b0607', '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-41caaa3aa2ce421b8b8a016edb32587a', 'subnet-pool-name-84a3d2b699ce4be5a968e6a0229fc81c', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-6ade7d1390214c7d980df7ca0ee3379d', 'subnet-pool-name-1a8ec9488b164967a426b9e7afaca55a', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-3f8c3c9a379640e8b2afb87b26ac589b', 'subnet-pool-name-1bb465f8ed40432583c58634c0ad86a8', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-41caaa3aa2ce421b8b8a016edb32587a', 'subnet-pool-name-84a3d2b699ce4be5a968e6a0229fc81c', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-0fec846bc7e440919c18d6e1ccceec2e'), ('subnet-pool-id-6ade7d1390214c7d980df7ca0ee3379d', 'subnet-pool-name-1a8ec9488b164967a426b9e7afaca55a', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-0547828cdef5486d80269850e1fa02db'), ('subnet-pool-id-3f8c3c9a379640e8b2afb87b26ac589b', 'subnet-pool-name-1bb465f8ed40432583c58634c0ad86a8', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-355004b880b34588891459a7dc3add28')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-355004b880b34588891459a7dc3add28, default_prefixlen=8, default_quota=None, id=subnet-pool-id-3f8c3c9a379640e8b2afb87b26ac589b, ip_version=4, is_default=False, keys=<MagicMock id='4039365324'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-1bb465f8ed40432583c58634c0ad86a8, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-da1832a270db417f8e998bd0d94ca45b, shared=False, tenant_id=project-id-da1832a270db417f8e998bd0d94ca45b>¶
-
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-8e8978980da14482b52ec98be9a0d55b', 8, None, 'subnet-pool-id-64686a6d48e04cb790489e68947a03c8', 4, False, 32, 8, 'subnet-pool-name-f3cac8b44a8245ee9a45bebec750f249', '10.0.0.0/24, 10.1.0.0/24', 'project-id-bba327c5e0f64ff991837885d6302a15', 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
()¶
-