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-a34ad1e431ca4ebe9e02f12fcabaf2ee, instance_id=server-id-ffa424225c1c4ad7839e81ef63972d0a, 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-f2160edc297647509c16929a2599bd08, id=floating-ip-id-c0bf3960d2894e6d993ba037a551f5d5, keys=<MagicMock id='47732353951120'>, port_id=port-id-dc726c93c5814dce98cdd5688081c72e, project_id=project-id-042756d08bff4d318e55d634df597050, router_id=router-id-61bfae1290e74a38b5f05894ab9c398e, status=DOWN, tenant_id=project-id-042756d08bff4d318e55d634df597050>¶
-
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-db6a39d8f46c4921b7c05baa0ce75b22', '1.0.9.0', '2.0.9.0', 'server-id-dc537fb976e243fe88d479f5675c96f0', 'public'), ('floating-ip-id-16785b0c07c844a5b30ea8401ae807e8', '1.0.9.0', '2.0.9.0', 'server-id-09688163708449309821b36b8b26c98f', 'public'), ('floating-ip-id-0dc9c45ef17946d3a4651f163c2cd5ce', '1.0.9.0', '2.0.9.0', 'server-id-d830558cdb56476382a8f616841c7e0a', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-db6a39d8f46c4921b7c05baa0ce75b22, instance_id=server-id-dc537fb976e243fe88d479f5675c96f0, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-16785b0c07c844a5b30ea8401ae807e8, instance_id=server-id-09688163708449309821b36b8b26c98f, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-0dc9c45ef17946d3a4651f163c2cd5ce, instance_id=server-id-d830558cdb56476382a8f616841c7e0a, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-0dc9c45ef17946d3a4651f163c2cd5ce, instance_id=server-id-d830558cdb56476382a8f616841c7e0a, 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-039e192fad514e6d8cc1dd6910b35ab5', '1.0.9.0', '2.0.9.0', 'port-id-05b1def76be7452994f8a6a7dd8c9991'), ('floating-ip-id-48d331506cd648b1b48946cfb24669f2', '1.0.9.0', '2.0.9.0', 'port-id-7be33bbd559f40f5ad62f3001d3c836a'), ('floating-ip-id-1bc9765380764f118b53006392cd6df7', '1.0.9.0', '2.0.9.0', 'port-id-1750160057f645519021f5e7f9794606')]¶
-
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-6ec08147287747c3938b335b009f991f, id=floating-ip-id-039e192fad514e6d8cc1dd6910b35ab5, keys=<MagicMock id='47732334357456'>, port_id=port-id-05b1def76be7452994f8a6a7dd8c9991, project_id=project-id-9b02ccd246da4eb4a55049b4285c3449, router_id=router-id-f58d7e3702bd4086a11d2172099337db, status=DOWN, tenant_id=project-id-9b02ccd246da4eb4a55049b4285c3449>, <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-4841d27b3dda44b49178f56d2c0cc250, id=floating-ip-id-48d331506cd648b1b48946cfb24669f2, keys=<MagicMock id='47732334614992'>, port_id=port-id-7be33bbd559f40f5ad62f3001d3c836a, project_id=project-id-e2290f3464f14db69d17406afae6860c, router_id=router-id-8188ffef04a4427c99e945806c264261, status=DOWN, tenant_id=project-id-e2290f3464f14db69d17406afae6860c>, <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-d0a47669dfd44542af77044ffa7d89c8, id=floating-ip-id-1bc9765380764f118b53006392cd6df7, keys=<MagicMock id='47732334615376'>, port_id=port-id-1750160057f645519021f5e7f9794606, project_id=project-id-6c24aa60f4824b4ca4ef2c6db2e56def, router_id=router-id-17e927cbfbb344df9305aae6778faac8, status=DOWN, tenant_id=project-id-6c24aa60f4824b4ca4ef2c6db2e56def>]¶
-
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-d0a47669dfd44542af77044ffa7d89c8, id=floating-ip-id-1bc9765380764f118b53006392cd6df7, keys=<MagicMock id='47732334615376'>, port_id=port-id-1750160057f645519021f5e7f9794606, project_id=project-id-6c24aa60f4824b4ca4ef2c6db2e56def, router_id=router-id-17e927cbfbb344df9305aae6778faac8, status=DOWN, tenant_id=project-id-6c24aa60f4824b4ca4ef2c6db2e56def>¶
-
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-72f3485dac224184a0b7b6b86e4d0e04', 'server-id-0c7ee9e7709b4aec842600aa70303561', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-72f3485dac224184a0b7b6b86e4d0e04, instance_id=server-id-0c7ee9e7709b4aec842600aa70303561, 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-bc9ba0735f374c58a04ffd438b802832', 'floating-ip-id-9483e6876460492e9490d32d351c0eae', 'port-id-a25054ae7d8b43e88712d9467f530099', 'project-id-ea52782bc42b4b968807f347ae374817', 'router-id-a4340b8c19d748e0b231d18cb6a47a5f', '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-bc9ba0735f374c58a04ffd438b802832, id=floating-ip-id-9483e6876460492e9490d32d351c0eae, keys=<MagicMock id='47732344525456'>, port_id=port-id-a25054ae7d8b43e88712d9467f530099, project_id=project-id-ea52782bc42b4b968807f347ae374817, router_id=router-id-a4340b8c19d748e0b231d18cb6a47a5f, status=DOWN, tenant_id=project-id-ea52782bc42b4b968807f347ae374817>¶
-
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-339edc47d63c42db9d65d32e1ecc5aa9', False, 'network-label-bdc179cacaf64fb49c6e564582d85eff', None, False, '255.255.255.0', None, None, 'project-id-5fc619d1b57643dea4728d9471a18dcc', 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-2de5c0140822461c94eaff3b97393457', 'network-name-f5846de90a3b48d9be003156dcbbb997', '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-0f29912c20bd4265830af4ba845b2255', 'network-name-10e63a060ce743d19587ad0081b16561', '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-5a2d590e14bd408387039979d71c6650', 'network-name-6c513565aadb4f439ed856efb47c1506', 'a, b'), ('network-id-344ddb2bbc0f4106a6a1848f8b4a041f', 'network-name-ab71f01e0def4bb792aaa3901b429ba5', 'a, b'), ('network-id-5d296e1498ea43c8ad7a61cbfb4e10b0', 'network-name-fc552fd5f9ce430db3e7091a5a29b55c', 'a, b')]¶
-
data_long
= [('network-id-5a2d590e14bd408387039979d71c6650', 'network-name-6c513565aadb4f439ed856efb47c1506', 'ACTIVE', 'project-id-b679112e504b468c9409a601a0edfe88', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-344ddb2bbc0f4106a6a1848f8b4a041f', 'network-name-ab71f01e0def4bb792aaa3901b429ba5', 'ACTIVE', 'project-id-b906a98e49cd424cb3a5ac7d26ca18c7', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-5d296e1498ea43c8ad7a61cbfb4e10b0', 'network-name-fc552fd5f9ce430db3e7091a5a29b55c', 'ACTIVE', 'project-id-13fdc85d52494e30a8e6c0061442c872', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-5d296e1498ea43c8ad7a61cbfb4e10b0, keys=<MagicMock id='47732359296528'>, name=network-name-fc552fd5f9ce430db3e7091a5a29b55c, project_id=project-id-13fdc85d52494e30a8e6c0061442c872, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-13fdc85d52494e30a8e6c0061442c872>¶
-
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-e646bfd7a6bf4fc6bfd2bb8bd27e27da', 'network-label-91083d14a82848f2bf56896d6a4c48de', '10.0.0.0/24'), ('network-id-81d7f8dbd6d040d4a0a303196863d7c7', 'network-label-7520afdbadb345c7a53537efc89b2efe', '10.0.0.0/24'), ('network-id-a3eff5e4f85d4379a47c90db0bfc7ff7', 'network-label-ee9d373a92e34dc1a8977523699b2a8d', '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-a3eff5e4f85d4379a47c90db0bfc7ff7, injected=False, keys=<MagicMock id='47732351464528'>, label=network-label-ee9d373a92e34dc1a8977523699b2a8d, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-c6de784b71f94be59acd0b5a18130cb1, 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-425c141abfdf4347a7ec6c950d77cb10', 'network-name-c289d3d50d9443e68ace47e2f3b6e114', 'project-id-5b9f1baccdcb4ec095a19dcf61dcea69', '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-6dfdba1cfdbe4b08a981d6bcdcb02a40', False, 'network-label-879441b9f2654fbf9250b42df0989015', None, False, '255.255.255.0', None, None, 'project-id-33350b9ec13141f7afeb160979d483b5', 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-e4e3bc118d2e4333977a1474ded9ca3c', '', '', 'ovs', 'normal', 'device-id-1a51e552d56f40979ba66e900e875c3c', 'compute:nova', '', 'dns-name-e9ac8bc19029430cb29c4987c0d72feb', '', '', 'port-id-7bf6616ab6c242e2957c6d95cce29e78', 'fa:16:3e:a9:4e:72', 'port-name-0f3d9ae5f7b7423587709acb7c0b16ca', 'network-id-b56fd505e4374116a3f661f0da59927d', True, 'project-id-93ca74131681429a8c478a8523462978', '', '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-3ceabaaa32ae4949a6b14aac1e3e8568', 'router-name-5b4e7df9e25e472990077bb58168b03e', 'project-id-b35e452f5f0b49f2b0e761b04bc7c291')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-3ceabaaa32ae4949a6b14aac1e3e8568, keys=<MagicMock id='47732234925712'>, name=router-name-5b4e7df9e25e472990077bb58168b03e, routes=[], status=ACTIVE, tenant_id=project-id-b35e452f5f0b49f2b0e761b04bc7c291>¶
-
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-343eea32af804ecab994c8aa27b36f8f', 'router-name-58296c5f81664d11bc523044bb8f4c59', 'ACTIVE', 'UP', False, False, 'project-id-56384b16e73742d1ab3022c8433a2394'), ('router-id-d50fb6e3de6c4a9abadd19ea32ee237f', 'router-name-6d390e6805124cc8825670e375836427', 'ACTIVE', 'UP', False, False, 'project-id-a206e399065947a5b259c8cce591f0ce'), ('router-id-fe499f182a014a85bf5c8541420a9dac', 'router-name-b1743a5bfa25461b859a7ceeac9aeb56', 'ACTIVE', 'UP', False, False, 'project-id-9c32b674567145c586d821e79b932922')]¶
-
data_long
= [('router-id-343eea32af804ecab994c8aa27b36f8f', 'router-name-58296c5f81664d11bc523044bb8f4c59', 'ACTIVE', 'UP', False, False, 'project-id-56384b16e73742d1ab3022c8433a2394', [], '{}', ''), ('router-id-d50fb6e3de6c4a9abadd19ea32ee237f', 'router-name-6d390e6805124cc8825670e375836427', 'ACTIVE', 'UP', False, False, 'project-id-a206e399065947a5b259c8cce591f0ce', [], '{}', ''), ('router-id-fe499f182a014a85bf5c8541420a9dac', 'router-name-b1743a5bfa25461b859a7ceeac9aeb56', 'ACTIVE', 'UP', False, False, 'project-id-9c32b674567145c586d821e79b932922', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fe499f182a014a85bf5c8541420a9dac, keys=<MagicMock id='47732264509200'>, name=router-name-b1743a5bfa25461b859a7ceeac9aeb56, routes=[], status=ACTIVE, tenant_id=project-id-9c32b674567145c586d821e79b932922>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-343eea32af804ecab994c8aa27b36f8f, keys=<MagicMock id='47732263879952'>, name=router-name-58296c5f81664d11bc523044bb8f4c59, routes=[], status=ACTIVE, tenant_id=project-id-56384b16e73742d1ab3022c8433a2394>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-d50fb6e3de6c4a9abadd19ea32ee237f, keys=<MagicMock id='47732245841488'>, name=router-name-6d390e6805124cc8825670e375836427, routes=[], status=ACTIVE, tenant_id=project-id-a206e399065947a5b259c8cce591f0ce>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fe499f182a014a85bf5c8541420a9dac, keys=<MagicMock id='47732264509200'>, name=router-name-b1743a5bfa25461b859a7ceeac9aeb56, routes=[], status=ACTIVE, tenant_id=project-id-9c32b674567145c586d821e79b932922>]¶
-
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-eadd468a612e4088a04fa08f8744af0c', 'router-name-ab1e70f9473c4690ac404171382955bb', 'project-id-98f139938e2d4e25a861dcc90b32ffbd')¶
-
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-c8a6b5c0dd9d4e58b7e89bd72fbe9327', 'security-group-name-68ec80b44ac14ed78717a21192118bdf', 'security-group-description-43bc517e74894f2ebbbd514ac4be37cc'),)¶
-
expected_data_all_projects
= (('security-group-id-c8a6b5c0dd9d4e58b7e89bd72fbe9327', 'security-group-name-68ec80b44ac14ed78717a21192118bdf', 'security-group-description-43bc517e74894f2ebbbd514ac4be37cc', 'project-id-1fdb440e5e76480690ffb313a3cd5fcc'),)¶
-
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-2ec296f25b4742beb2752333095fd79f', 'security-group-name-efdaaf47af1d469d80c4874c20445fd7', 'security-group-description-688e5e02644d4f8ca87ed0fa695c5dc2', 'project-id-35c8dda74a0944088a6524b4b631c1d2'),)¶
-
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-7f6ea297d1834e16b0cdd0651a84e7ea', 'icmp', '0.0.0.0/0', 'security-group-id-1e9e3477dc064fb4873b1aed3ec3148b', '', '')¶
-
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-991eab1e2c9348b583567d396bfde38e', None, None, 'project-id-bb3daf40dc4046c78351a7007e07d45d', None, 'remote-security-group-id-36aebbb61573473088505d7d5ab786f1', None, 'security-group-id-c03732607e204b85bf05a0ff96c004c1')¶
-
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-8505739eff2f4ce7a12f76351b951e26', 'subnet-name-8aac6f813da24469899ea67c2b88248d', 'network-id-5a031ff43e784214b6da18df58fd0e5c', '10.10.10.0/24'), ('subnet-id-2032336c57cb418da7c320f7908b542b', 'subnet-name-8e6a0d7eb65a453589bed0c82ec99688', 'network-id-e0e075269612425086ee2bf27fc61254', '10.10.10.0/24'), ('subnet-id-0b285e869e6d4bc2aa280c7799d45356', 'subnet-name-1d2ac920955e4450aa9e363859ef79be', 'network-id-78c19d1e99fb4e978c4bbc1ce9c81e6a', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-8505739eff2f4ce7a12f76351b951e26', 'subnet-name-8aac6f813da24469899ea67c2b88248d', 'network-id-5a031ff43e784214b6da18df58fd0e5c', '10.10.10.0/24', 'project-id-ebde9d30463542628541d0de079df0c6', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-2032336c57cb418da7c320f7908b542b', 'subnet-name-8e6a0d7eb65a453589bed0c82ec99688', 'network-id-e0e075269612425086ee2bf27fc61254', '10.10.10.0/24', 'project-id-289da15655e04914a5f5da8faaae9861', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-0b285e869e6d4bc2aa280c7799d45356', 'subnet-name-1d2ac920955e4450aa9e363859ef79be', 'network-id-78c19d1e99fb4e978c4bbc1ce9c81e6a', '10.10.10.0/24', 'project-id-7f96704d4ac84f3597073bfaa2703ce9', 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-0b285e869e6d4bc2aa280c7799d45356, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='47732368912592'>, name=subnet-name-1d2ac920955e4450aa9e363859ef79be, network_id=network-id-78c19d1e99fb4e978c4bbc1ce9c81e6a, project_id=project-id-7f96704d4ac84f3597073bfaa2703ce9, subnetpool_id=None, tenant_id=project-id-7f96704d4ac84f3597073bfaa2703ce9>¶
-
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-a969eb8d580c4a30926599197220f0c0', '4', 'None', 'None', 'subnet-name-a4a754709bc04dbe9603f84bdef55aa5', 'network-id-49b3ce90778748c9b68c144d4d00bb2a', 'project-id-317268f623a14269871e933ea22886ff', '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-f51f6b66d94c42db8628bb0c47f827ef', 'subnet-pool-name-e9dfc8a0e7644416ba456902a226ac5f', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-75851b29556b4020afee733849bda0fc', 'subnet-pool-name-4b6a09a640874bbf9731cb097fe96658', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-6f5f55acb0694d5e8559e62e521d2f0f', 'subnet-pool-name-e0c1060423f849d6a527c9db23ad0957', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-f51f6b66d94c42db8628bb0c47f827ef', 'subnet-pool-name-e9dfc8a0e7644416ba456902a226ac5f', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-62029f19691e4b28b05d9041de025a58'), ('subnet-pool-id-75851b29556b4020afee733849bda0fc', 'subnet-pool-name-4b6a09a640874bbf9731cb097fe96658', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-6b5e407894a043009873dcfed1fcd555'), ('subnet-pool-id-6f5f55acb0694d5e8559e62e521d2f0f', 'subnet-pool-name-e0c1060423f849d6a527c9db23ad0957', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-82cf6127a09e4524a2605b036c9abfd7')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-82cf6127a09e4524a2605b036c9abfd7, default_prefixlen=8, default_quota=None, id=subnet-pool-id-6f5f55acb0694d5e8559e62e521d2f0f, ip_version=4, is_default=False, keys=<MagicMock id='47732242277392'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-e0c1060423f849d6a527c9db23ad0957, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-4157828251f6438e9eb669a9eaf3bcf1, shared=False, tenant_id=project-id-4157828251f6438e9eb669a9eaf3bcf1>¶
-
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-16372d94c81f462c8574641647b4f898', 8, None, 'subnet-pool-id-13d0e5e1341244a187a22f9502062716', 4, False, 32, 8, 'subnet-pool-name-77d889bbc20a49e1a2689d4aeabcb4b5', '10.0.0.0/24, 10.1.0.0/24', 'project-id-ae2517a81cb94e96ab106c08005d8a1b', 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
()¶
-