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-b9a872eb75824c7b804f03c8f62600a2, instance_id=server-id-bcd2529714254aeaaba3a7b678999723, 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-d33ac323bf6a456d863039c710d59c12, id=floating-ip-id-39b7094ee0bb46b796b970ab987c2171, keys=<MagicMock id='47658683483792'>, port_id=port-id-4b3d3622397c4fe283d0ebd64c31a1f4, project_id=project-id-619d91d76d674272af2ad776ed8f042a, router_id=router-id-f67f05dcca0d4fcd82edf73ff2f1c836, status=DOWN, tenant_id=project-id-619d91d76d674272af2ad776ed8f042a>¶
-
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-d8c70f6bfaec45f8b2e3f14a4f6f4465', '1.0.9.0', '2.0.9.0', 'server-id-150fa02d95f442a29b7aad746e6a8aae', 'public'), ('floating-ip-id-f23f3ccd09c24288a3da2de910fd0ec2', '1.0.9.0', '2.0.9.0', 'server-id-a6b57494c23a49c29896436c1bfdcf92', 'public'), ('floating-ip-id-9fceb3c52dd546429c5b10a877056ac7', '1.0.9.0', '2.0.9.0', 'server-id-a7c62105bb3e449a9bcbfb78b29fd7fd', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-d8c70f6bfaec45f8b2e3f14a4f6f4465, instance_id=server-id-150fa02d95f442a29b7aad746e6a8aae, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-f23f3ccd09c24288a3da2de910fd0ec2, instance_id=server-id-a6b57494c23a49c29896436c1bfdcf92, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-9fceb3c52dd546429c5b10a877056ac7, instance_id=server-id-a7c62105bb3e449a9bcbfb78b29fd7fd, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-9fceb3c52dd546429c5b10a877056ac7, instance_id=server-id-a7c62105bb3e449a9bcbfb78b29fd7fd, 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-62ae47cad5e543cbb4c5366c0488c36b', '1.0.9.0', '2.0.9.0', 'port-id-d2914cdaa93441a383b3354600d5f854'), ('floating-ip-id-9ec88ef79363460aa6399530df3b4a41', '1.0.9.0', '2.0.9.0', 'port-id-da5b99bb87aa4608b44564386714bb0d'), ('floating-ip-id-7ad90073920f4b3a8414465f6f5d2e7e', '1.0.9.0', '2.0.9.0', 'port-id-62fbbf3c2d8d43db9e0b062ea60de8d5')]¶
-
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-5dcc13e23cba4610984099c5e3b928ad, id=floating-ip-id-62ae47cad5e543cbb4c5366c0488c36b, keys=<MagicMock id='47658698432592'>, port_id=port-id-d2914cdaa93441a383b3354600d5f854, project_id=project-id-c628ee7aa1ad4d74947020e107ba9255, router_id=router-id-92123b96455a473d8e69ee2c594ff94c, status=DOWN, tenant_id=project-id-c628ee7aa1ad4d74947020e107ba9255>, <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-4bb0c2764fa74ec0862bf9662adc3e32, id=floating-ip-id-9ec88ef79363460aa6399530df3b4a41, keys=<MagicMock id='47658571061136'>, port_id=port-id-da5b99bb87aa4608b44564386714bb0d, project_id=project-id-250528f901ae4667a2c7033c34cf737d, router_id=router-id-5feefeacb3fd4ebc9ad384e5f431d4a0, status=DOWN, tenant_id=project-id-250528f901ae4667a2c7033c34cf737d>, <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-6c80cd3b71db447db297429c500a8262, id=floating-ip-id-7ad90073920f4b3a8414465f6f5d2e7e, keys=<MagicMock id='47658573674832'>, port_id=port-id-62fbbf3c2d8d43db9e0b062ea60de8d5, project_id=project-id-64f824b7ceb54257884fb79503134415, router_id=router-id-a080008c698a43fa8a7c1e9152dd0f85, status=DOWN, tenant_id=project-id-64f824b7ceb54257884fb79503134415>]¶
-
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-6c80cd3b71db447db297429c500a8262, id=floating-ip-id-7ad90073920f4b3a8414465f6f5d2e7e, keys=<MagicMock id='47658573674832'>, port_id=port-id-62fbbf3c2d8d43db9e0b062ea60de8d5, project_id=project-id-64f824b7ceb54257884fb79503134415, router_id=router-id-a080008c698a43fa8a7c1e9152dd0f85, status=DOWN, tenant_id=project-id-64f824b7ceb54257884fb79503134415>¶
-
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-b1817c48b9064ddb9602db5b2b3fd81e', 'server-id-307319ced743498781c47c0f4b23a5b1', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-b1817c48b9064ddb9602db5b2b3fd81e, instance_id=server-id-307319ced743498781c47c0f4b23a5b1, 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-c9607829a67d4ad2b4e15961875328fd', 'floating-ip-id-10b0ddea57a34cd7b0637aaa406b7230', 'port-id-03767f7fc2584ed79409aebfac936de7', 'project-id-027bd5dfdbe54dca8a47c6326b5db1b1', 'router-id-15ae7d6d21374236ad22650577f872e0', '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-c9607829a67d4ad2b4e15961875328fd, id=floating-ip-id-10b0ddea57a34cd7b0637aaa406b7230, keys=<MagicMock id='47658687178960'>, port_id=port-id-03767f7fc2584ed79409aebfac936de7, project_id=project-id-027bd5dfdbe54dca8a47c6326b5db1b1, router_id=router-id-15ae7d6d21374236ad22650577f872e0, status=DOWN, tenant_id=project-id-027bd5dfdbe54dca8a47c6326b5db1b1>¶
-
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-f73bbfbae1dd4afc93b541f4cfa8cacf', False, 'network-label-a60112b2363b448f80494f97234875da', None, False, '255.255.255.0', None, None, 'project-id-faac4c62909546358bd85702c3a574f6', 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-afb581ff60ef4f7e991c920df00557ce', 'network-name-153287daa46a4f3391f80eab372a7690', '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-2cac4fbde18b424393c2489702e249fc', 'network-name-c9945682fb2c448da868625ef47b1971', '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-82d114adcb854f218fdd69e3ea150a2f', 'network-name-dba7e0a4783443238c14a2fd07d0f1ba', 'a, b'), ('network-id-4915e1997c0848458316491ef709027a', 'network-name-31eeeb75654e443b9887af35b8b8a3b8', 'a, b'), ('network-id-622202265def4b1a8a67705e9926fa23', 'network-name-a456f778249a4bb8bb297303b48d78d9', 'a, b')]¶
-
data_long
= [('network-id-82d114adcb854f218fdd69e3ea150a2f', 'network-name-dba7e0a4783443238c14a2fd07d0f1ba', 'ACTIVE', 'project-id-a53eff45d96f4f05b0b615d5e2c7c375', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-4915e1997c0848458316491ef709027a', 'network-name-31eeeb75654e443b9887af35b8b8a3b8', 'ACTIVE', 'project-id-c67726f1d30a4042bcc05b90fb111e56', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-622202265def4b1a8a67705e9926fa23', 'network-name-a456f778249a4bb8bb297303b48d78d9', 'ACTIVE', 'project-id-4965d8c297f14be8a5397299c1a51e0f', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-622202265def4b1a8a67705e9926fa23, keys=<MagicMock id='47658594946960'>, name=network-name-a456f778249a4bb8bb297303b48d78d9, project_id=project-id-4965d8c297f14be8a5397299c1a51e0f, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-4965d8c297f14be8a5397299c1a51e0f>¶
-
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-b8a5d2ffad954fafb17816d957b591e0', 'network-label-cab70d6aa4194f7c80db1294750ea54d', '10.0.0.0/24'), ('network-id-78766b7e1034439d880c5003723d4304', 'network-label-1abc74ef6c4e428bb137de41b1d892c5', '10.0.0.0/24'), ('network-id-b4bc466f73c940cab2b521f139935de8', 'network-label-7a392c6fccb2457fbe7f3e00f461d490', '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-b4bc466f73c940cab2b521f139935de8, injected=False, keys=<MagicMock id='47658718598480'>, label=network-label-7a392c6fccb2457fbe7f3e00f461d490, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-e9b1902209cc4a12ae5cc0da0799792f, 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-807a3a8d3ba040249c5ce72299fb3bf3', 'network-name-5713aae524254891a536052029071def', 'project-id-69489cf5ddb84004bdfd718ab3b97343', '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-b64ac64ef62a43fc912b23a5dea038c7', False, 'network-label-a8055e8c8cb946b2b17c77ecf1f3d650', None, False, '255.255.255.0', None, None, 'project-id-f7b94df69be540c0a361e93ea21b15a3', 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-7e387d99c3474883ba5fc9c7e39dc2d4', '', '', 'ovs', 'normal', 'device-id-a10fd90ac8504eb8b39fa4ee310fa8e5', 'compute:nova', '', 'dns-name-ba27611c4fe940268d56cc55add05e41', '', '', 'port-id-9c07532c88af4e448e7e8328be8fc43b', 'fa:16:3e:a9:4e:72', 'port-name-cf426381b7dc4c53b33ea871620f8b44', 'network-id-e09e14a95953426ba0279b114945de15', True, 'project-id-86401a8c290a42789672fadf05d02c47', '', '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-4352ce218244426ab769bd987917127d', 'router-name-36b9ae50e4f94b9ba09d93c6a829ad0f', 'project-id-3e42680295824cf7877215010e206bca')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-4352ce218244426ab769bd987917127d, keys=<MagicMock id='47658587502800'>, name=router-name-36b9ae50e4f94b9ba09d93c6a829ad0f, routes=[], status=ACTIVE, tenant_id=project-id-3e42680295824cf7877215010e206bca>¶
-
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-11736ac172d14584aea3d7dc4d69eb48', 'router-name-042bf2bb7eb2455f9a8ecdb32afd43e7', 'ACTIVE', 'UP', False, False, 'project-id-196901e3c8cf47449ac6caf1309fe0d3'), ('router-id-67c30e9d40bc4911a70f209ebde6fbe1', 'router-name-84269e438ed2426dad6ebece45149ac6', 'ACTIVE', 'UP', False, False, 'project-id-500f545e2ea64b4a94df4ce6b2c0f3a6'), ('router-id-3640c62862014c9db2cd410680ef52d9', 'router-name-d0613d8d36ee4aabbb55255d4a263b7d', 'ACTIVE', 'UP', False, False, 'project-id-fb81165388094c7dad9f0da1c1761494')]¶
-
data_long
= [('router-id-11736ac172d14584aea3d7dc4d69eb48', 'router-name-042bf2bb7eb2455f9a8ecdb32afd43e7', 'ACTIVE', 'UP', False, False, 'project-id-196901e3c8cf47449ac6caf1309fe0d3', [], '{}', ''), ('router-id-67c30e9d40bc4911a70f209ebde6fbe1', 'router-name-84269e438ed2426dad6ebece45149ac6', 'ACTIVE', 'UP', False, False, 'project-id-500f545e2ea64b4a94df4ce6b2c0f3a6', [], '{}', ''), ('router-id-3640c62862014c9db2cd410680ef52d9', 'router-name-d0613d8d36ee4aabbb55255d4a263b7d', 'ACTIVE', 'UP', False, False, 'project-id-fb81165388094c7dad9f0da1c1761494', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-3640c62862014c9db2cd410680ef52d9, keys=<MagicMock id='47658708605520'>, name=router-name-d0613d8d36ee4aabbb55255d4a263b7d, routes=[], status=ACTIVE, tenant_id=project-id-fb81165388094c7dad9f0da1c1761494>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-11736ac172d14584aea3d7dc4d69eb48, keys=<MagicMock id='47658621370896'>, name=router-name-042bf2bb7eb2455f9a8ecdb32afd43e7, routes=[], status=ACTIVE, tenant_id=project-id-196901e3c8cf47449ac6caf1309fe0d3>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-67c30e9d40bc4911a70f209ebde6fbe1, keys=<MagicMock id='47658678156304'>, name=router-name-84269e438ed2426dad6ebece45149ac6, routes=[], status=ACTIVE, tenant_id=project-id-500f545e2ea64b4a94df4ce6b2c0f3a6>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-3640c62862014c9db2cd410680ef52d9, keys=<MagicMock id='47658708605520'>, name=router-name-d0613d8d36ee4aabbb55255d4a263b7d, routes=[], status=ACTIVE, tenant_id=project-id-fb81165388094c7dad9f0da1c1761494>]¶
-
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-52802ca708244b1d871bac6cb9812db9', 'router-name-0ba0addd05dd4811a3d8a0ee2f7d9944', 'project-id-17e0502daaa0482a87ce1533e81175b1')¶
-
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-dd6c63faba4e40b68b7fe6a85b9c0d91', 'security-group-name-390ad55d39c94b97a425ddf63bc16fa9', 'security-group-description-70ff327344a44553a68efd5dbeeadc5a'),)¶
-
expected_data_all_projects
= (('security-group-id-dd6c63faba4e40b68b7fe6a85b9c0d91', 'security-group-name-390ad55d39c94b97a425ddf63bc16fa9', 'security-group-description-70ff327344a44553a68efd5dbeeadc5a', 'project-id-ac9d571fb1e144718dc085551aa58ef2'),)¶
-
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-5044acde847b4b8eb28bd26082ecd50e', 'security-group-name-7f101b793cbe4ed3a1fc3925e345b8d1', 'security-group-description-cdfa7b89f78949a3937ca0bde45b5471', 'project-id-d98d62864d4c4d0db4ee39e0879abe75'),)¶
-
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-9a9e8b5a6f254263bf280e6817ea76c8', 'icmp', '0.0.0.0/0', 'security-group-id-06c59bced26d4eb0841b58733923fd2a', '', '')¶
-
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-f395391b02a249f09e1228076720c0d1', None, None, 'project-id-f00ad123ab3142d1a137070bece37d44', None, 'remote-security-group-id-b44fa81db30042cb8ce679414adc1216', None, 'security-group-id-585bf7d084c74a7d8b3fda5de0e35c37')¶
-
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-feca0b4a77ff46bfbcd9df9a0d0b8dfa', 'subnet-name-7fccbfc2c3044dec9ea5597195eb5586', 'network-id-607a8af1b2d0400088114f330aea4cd5', '10.10.10.0/24'), ('subnet-id-58e61e1078d24fa1a1ce1dc01e181ee0', 'subnet-name-78f2b7c82d5149cebd1361f7d802ca53', 'network-id-6ca8ef9a453b4df8a4f4d7066e37dae8', '10.10.10.0/24'), ('subnet-id-e740cc60693c46e0a81e9e9b6520ad97', 'subnet-name-5f951f0c6f134fca904b3d06934d364f', 'network-id-c84f66427b784f2d9ed1a79e339ec5f2', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-feca0b4a77ff46bfbcd9df9a0d0b8dfa', 'subnet-name-7fccbfc2c3044dec9ea5597195eb5586', 'network-id-607a8af1b2d0400088114f330aea4cd5', '10.10.10.0/24', 'project-id-4e1c08299bae4d3d8a331a6f9c9cd87c', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-58e61e1078d24fa1a1ce1dc01e181ee0', 'subnet-name-78f2b7c82d5149cebd1361f7d802ca53', 'network-id-6ca8ef9a453b4df8a4f4d7066e37dae8', '10.10.10.0/24', 'project-id-3829467da63c4c8ba3f40b737eb9fbda', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-e740cc60693c46e0a81e9e9b6520ad97', 'subnet-name-5f951f0c6f134fca904b3d06934d364f', 'network-id-c84f66427b784f2d9ed1a79e339ec5f2', '10.10.10.0/24', 'project-id-7ab9d55a27bc4e839a47bea88b5d490b', 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-e740cc60693c46e0a81e9e9b6520ad97, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='47658721489360'>, name=subnet-name-5f951f0c6f134fca904b3d06934d364f, network_id=network-id-c84f66427b784f2d9ed1a79e339ec5f2, project_id=project-id-7ab9d55a27bc4e839a47bea88b5d490b, subnetpool_id=None, tenant_id=project-id-7ab9d55a27bc4e839a47bea88b5d490b>¶
-
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-9fa21dcfddfa47cfa7a60951999fb934', '4', 'None', 'None', 'subnet-name-34865e4b80cf43258ca98fd0e9d43a12', 'network-id-89bd676449594c1b9d361cd2265b0afd', 'project-id-1cd3891f891f476ab26602c74576470f', '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-dbeab6f0155841628e903aad1db3d24f', 'subnet-pool-name-c3bd9277245c490b8666859106322328', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-b2cf719a90f245449815ccf1569738d8', 'subnet-pool-name-26ba85da7c4d4931a63cdf848aac1a4d', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-5c9d0e4f81f844be9c3cdfbd52ff2722', 'subnet-pool-name-88408ea567df4cc1b7339425722d0375', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-dbeab6f0155841628e903aad1db3d24f', 'subnet-pool-name-c3bd9277245c490b8666859106322328', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-232a0a6461af432680944ed534b8b456'), ('subnet-pool-id-b2cf719a90f245449815ccf1569738d8', 'subnet-pool-name-26ba85da7c4d4931a63cdf848aac1a4d', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-0fbd58e01b394dc590ffcdf5e36dcbb6'), ('subnet-pool-id-5c9d0e4f81f844be9c3cdfbd52ff2722', 'subnet-pool-name-88408ea567df4cc1b7339425722d0375', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-6b01b1448a8e488f9afc09407246b3cd')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-6b01b1448a8e488f9afc09407246b3cd, default_prefixlen=8, default_quota=None, id=subnet-pool-id-5c9d0e4f81f844be9c3cdfbd52ff2722, ip_version=4, is_default=False, keys=<MagicMock id='47658580663824'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-88408ea567df4cc1b7339425722d0375, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-0190e07e0ee141c483ff1f1a81e052da, shared=False, tenant_id=project-id-0190e07e0ee141c483ff1f1a81e052da>¶
-
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-d04113094262499884fb7f94d45c0455', 8, None, 'subnet-pool-id-bfed1f8faf8e4ead99beba0518cd9837', 4, False, 32, 8, 'subnet-pool-name-aa0068a5c0f540dcac8d509de2cb4907', '10.0.0.0/24, 10.1.0.0/24', 'project-id-ea93582c3a4d4dc68ce9b60af9a26d09', 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
()¶
-