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-ca0efbbf0fc643158a2c911466e7a8d5, instance_id=server-id-d79d84478aa04e8ea3380e443f217f6c, 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-0b4da8baaf944a3b846dce01fa9bc8fc, id=floating-ip-id-5c31308277434605843e5b7d595bcb46, keys=<MagicMock id='47921747606736'>, port_id=port-id-d864a6caf422410ab42327ca20dbfc9a, project_id=project-id-9b589e4388324d96b9269cb752f1f992, router_id=router-id-456e5d937ce24107b369b9c1b7ed48f9, status=DOWN, tenant_id=project-id-9b589e4388324d96b9269cb752f1f992>¶
-
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-c10a767484804669b29b788e6f1fd265', '1.0.9.0', '2.0.9.0', 'server-id-9e8d0abdffbe475e9445116bf04ee4f4', 'public'), ('floating-ip-id-dd28c1f0d899400aa5f25c877cda9a4f', '1.0.9.0', '2.0.9.0', 'server-id-fd8fa3c612424139950053fb4b67640d', 'public'), ('floating-ip-id-18069339c0de4c379edce9eb9daf6239', '1.0.9.0', '2.0.9.0', 'server-id-01816fd5fe4e4136b2b7b5f81e4282dc', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-c10a767484804669b29b788e6f1fd265, instance_id=server-id-9e8d0abdffbe475e9445116bf04ee4f4, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-dd28c1f0d899400aa5f25c877cda9a4f, instance_id=server-id-fd8fa3c612424139950053fb4b67640d, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-18069339c0de4c379edce9eb9daf6239, instance_id=server-id-01816fd5fe4e4136b2b7b5f81e4282dc, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-18069339c0de4c379edce9eb9daf6239, instance_id=server-id-01816fd5fe4e4136b2b7b5f81e4282dc, 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-e093aa224cbf4f8e85bc86fa2484c4ef', '1.0.9.0', '2.0.9.0', 'port-id-4231d1163b824cbfb7a7e41ffa45db3b'), ('floating-ip-id-f9aad5181267419e802a166308c222e8', '1.0.9.0', '2.0.9.0', 'port-id-4d0338c480f54514853816e109ae08f3'), ('floating-ip-id-6cb7a50ba6d44af4857e8296f7ede0b7', '1.0.9.0', '2.0.9.0', 'port-id-686ba45ef6ce4f02ab2c69d9ba432dab')]¶
-
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-5619884e75704b8d8bd4a97aed365f75, id=floating-ip-id-e093aa224cbf4f8e85bc86fa2484c4ef, keys=<MagicMock id='47921763540048'>, port_id=port-id-4231d1163b824cbfb7a7e41ffa45db3b, project_id=project-id-664e32062db54a03b91905ad92402fbc, router_id=router-id-e471e62c68a94be3a4e96f3828d63537, status=DOWN, tenant_id=project-id-664e32062db54a03b91905ad92402fbc>, <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-90ad9c4133144e6286313df461c81b60, id=floating-ip-id-f9aad5181267419e802a166308c222e8, keys=<MagicMock id='47921707723536'>, port_id=port-id-4d0338c480f54514853816e109ae08f3, project_id=project-id-d61778ffcd41440ab006210c27d72a50, router_id=router-id-edc4e8a94a4d4ba9a1dc6bee02a48b62, status=DOWN, tenant_id=project-id-d61778ffcd41440ab006210c27d72a50>, <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-19c318f6128a41c2a10a33b2c9e67ba9, id=floating-ip-id-6cb7a50ba6d44af4857e8296f7ede0b7, keys=<MagicMock id='47921718680784'>, port_id=port-id-686ba45ef6ce4f02ab2c69d9ba432dab, project_id=project-id-b452dc250765454ea66fc407a6addf54, router_id=router-id-879de41b2f31450590cb5fff257ef66c, status=DOWN, tenant_id=project-id-b452dc250765454ea66fc407a6addf54>]¶
-
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-19c318f6128a41c2a10a33b2c9e67ba9, id=floating-ip-id-6cb7a50ba6d44af4857e8296f7ede0b7, keys=<MagicMock id='47921718680784'>, port_id=port-id-686ba45ef6ce4f02ab2c69d9ba432dab, project_id=project-id-b452dc250765454ea66fc407a6addf54, router_id=router-id-879de41b2f31450590cb5fff257ef66c, status=DOWN, tenant_id=project-id-b452dc250765454ea66fc407a6addf54>¶
-
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-65d8090cf30c42f19b8887dd56c82434', 'server-id-d82349dce2b54c7ba0e66bdc06e2d840', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-65d8090cf30c42f19b8887dd56c82434, instance_id=server-id-d82349dce2b54c7ba0e66bdc06e2d840, 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-318dea8c1692412697f737e2c6218d22', 'floating-ip-id-b863ee97da9b4544b091d14c87c0764b', 'port-id-ee77ff9aa59340f2a02beba2a8833871', 'project-id-697bb28422394eacae088419fde7b67d', 'router-id-559d6a98a3da477ca2472d59ac2ef7e8', '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-318dea8c1692412697f737e2c6218d22, id=floating-ip-id-b863ee97da9b4544b091d14c87c0764b, keys=<MagicMock id='47921754267280'>, port_id=port-id-ee77ff9aa59340f2a02beba2a8833871, project_id=project-id-697bb28422394eacae088419fde7b67d, router_id=router-id-559d6a98a3da477ca2472d59ac2ef7e8, status=DOWN, tenant_id=project-id-697bb28422394eacae088419fde7b67d>¶
-
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-eb84343bdbbc4f59a9a2c8cc012413c7', False, 'network-label-ebf340467bf54519b9fae99ac3ca431f', None, False, '255.255.255.0', None, None, 'project-id-dc017f5d1b4e46518b1c39ed23ca40ac', 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-ae5797f29ea0487eadc667fcce193fe4', 'network-name-4664ff9d0f1a4f44a65fd1375664d481', '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-fa56418c85424de0976ed28655dcdf84', 'network-name-42453953768340e5b74a18c5a2825b46', '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-94e0739e3eda4742a6fe4fa0575f1f2b', 'network-name-ef2e504af50c4c1591fe369b0ec5c909', 'a, b'), ('network-id-635e396f06134e6bab848e465a25b1c1', 'network-name-8db8f53494f849ccbd4059d1365df08d', 'a, b'), ('network-id-30f5a2323017460aa695681dc7ca5802', 'network-name-b8b27b7a99b34b87a402bae5b5913901', 'a, b')]¶
-
data_long
= [('network-id-94e0739e3eda4742a6fe4fa0575f1f2b', 'network-name-ef2e504af50c4c1591fe369b0ec5c909', 'ACTIVE', 'project-id-10ad8520557c4d7db6f5d08e90289199', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-635e396f06134e6bab848e465a25b1c1', 'network-name-8db8f53494f849ccbd4059d1365df08d', 'ACTIVE', 'project-id-2b91af72a47a4be7b4191ccf1857792d', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-30f5a2323017460aa695681dc7ca5802', 'network-name-b8b27b7a99b34b87a402bae5b5913901', 'ACTIVE', 'project-id-71820260b31b4942bb98db57e43292f0', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-30f5a2323017460aa695681dc7ca5802, keys=<MagicMock id='47921778860432'>, name=network-name-b8b27b7a99b34b87a402bae5b5913901, project_id=project-id-71820260b31b4942bb98db57e43292f0, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-71820260b31b4942bb98db57e43292f0>¶
-
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-3c78839cb98f4199814b48e46303c494', 'network-label-7c97849c9a3f4d128e4d95f028d2cb28', '10.0.0.0/24'), ('network-id-027c08397c5f4d35ab07064cdbd26b40', 'network-label-776b41ff90f645cda6d1ae8ccfe4afb7', '10.0.0.0/24'), ('network-id-47bc3c0e877e4c338a1cd7ce5c2b1bd1', 'network-label-3148a30008d54eba888434cf16d15e1a', '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-47bc3c0e877e4c338a1cd7ce5c2b1bd1, injected=False, keys=<MagicMock id='47921754449360'>, label=network-label-3148a30008d54eba888434cf16d15e1a, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-f3076c81923742a8b0334c696298e54d, 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-60e456181bcd44309cfb107375f0f943', 'network-name-c7b8706c81ad424f9152f8d3bbba0ae3', 'project-id-400985bfd73f4886b5406e0740a54b1f', '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-4693474c69c8497f90ed1fbbe53eba3b', False, 'network-label-a82ca25ae3c34b2eb3fb71215a469ba7', None, False, '255.255.255.0', None, None, 'project-id-65b1eaf565d04604b59ddb08da283f03', 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-c96b333a8ddc4d8f8b539154881b2ed6', '', '', 'ovs', 'normal', 'device-id-366249dde6dc4ea086431c0e41936fcc', 'compute:nova', '', 'dns-name-4f1dcbcb421c47fb89ee2e9457b0daff', '', '', 'port-id-c6f7251db53745d29e8847f31b3aaf75', 'fa:16:3e:a9:4e:72', 'port-name-552cce9c2c7e4eb0bc59e523daf77c18', 'network-id-636216c1a15744659afdbcfacf6e13d7', True, 'project-id-727e0bc91abe453c9e7453b94e2f0455', '', '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-5f282ec539b3466ca40aec8486c20981', 'router-name-ce761921713d465ebb72b3bfe19b4701', 'project-id-551ab8e02ef04d6e82b8636eb0fa9b0f')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-5f282ec539b3466ca40aec8486c20981, keys=<MagicMock id='47921723800528'>, name=router-name-ce761921713d465ebb72b3bfe19b4701, routes=[], status=ACTIVE, tenant_id=project-id-551ab8e02ef04d6e82b8636eb0fa9b0f>¶
-
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-f5ebe3110ed14f06bee9ecae506d896c', 'router-name-fd9ad765f96f496d9cca831fea233d96', 'ACTIVE', 'UP', False, False, 'project-id-96545d92b3a94d9582687dc2609e7e5a'), ('router-id-ac6c98906bc14f71b5dc18bdc796b1c5', 'router-name-9d827ef74f8b4798a5bf4277bae13a94', 'ACTIVE', 'UP', False, False, 'project-id-313f80b280164245873856d1fb758977'), ('router-id-7886772f2d7041a3849063cd4d604fcc', 'router-name-77cad2c8dcbb4fdd8e7bc67889acc421', 'ACTIVE', 'UP', False, False, 'project-id-5c2d8d4390874ea79a085229c4b260bd')]¶
-
data_long
= [('router-id-f5ebe3110ed14f06bee9ecae506d896c', 'router-name-fd9ad765f96f496d9cca831fea233d96', 'ACTIVE', 'UP', False, False, 'project-id-96545d92b3a94d9582687dc2609e7e5a', [], '{}', ''), ('router-id-ac6c98906bc14f71b5dc18bdc796b1c5', 'router-name-9d827ef74f8b4798a5bf4277bae13a94', 'ACTIVE', 'UP', False, False, 'project-id-313f80b280164245873856d1fb758977', [], '{}', ''), ('router-id-7886772f2d7041a3849063cd4d604fcc', 'router-name-77cad2c8dcbb4fdd8e7bc67889acc421', 'ACTIVE', 'UP', False, False, 'project-id-5c2d8d4390874ea79a085229c4b260bd', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-7886772f2d7041a3849063cd4d604fcc, keys=<MagicMock id='47921683760720'>, name=router-name-77cad2c8dcbb4fdd8e7bc67889acc421, routes=[], status=ACTIVE, tenant_id=project-id-5c2d8d4390874ea79a085229c4b260bd>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-f5ebe3110ed14f06bee9ecae506d896c, keys=<MagicMock id='47921693135824'>, name=router-name-fd9ad765f96f496d9cca831fea233d96, routes=[], status=ACTIVE, tenant_id=project-id-96545d92b3a94d9582687dc2609e7e5a>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-ac6c98906bc14f71b5dc18bdc796b1c5, keys=<MagicMock id='47921711647056'>, name=router-name-9d827ef74f8b4798a5bf4277bae13a94, routes=[], status=ACTIVE, tenant_id=project-id-313f80b280164245873856d1fb758977>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-7886772f2d7041a3849063cd4d604fcc, keys=<MagicMock id='47921683760720'>, name=router-name-77cad2c8dcbb4fdd8e7bc67889acc421, routes=[], status=ACTIVE, tenant_id=project-id-5c2d8d4390874ea79a085229c4b260bd>]¶
-
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-cb354b3cebc94c958e4d09391c969dbe', 'router-name-a731f156e4e24bf097d0790120e6ba97', 'project-id-5de2a0d06cf846069175959c34358a01')¶
-
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-594a053a891a44888e5b2534d7683aa5', 'security-group-name-0efc015ee0544f269e077bf6c68513ba', 'security-group-description-08ba83b3b865488c94bd7b672a2e1fca'),)¶
-
expected_data_all_projects
= (('security-group-id-594a053a891a44888e5b2534d7683aa5', 'security-group-name-0efc015ee0544f269e077bf6c68513ba', 'security-group-description-08ba83b3b865488c94bd7b672a2e1fca', 'project-id-9e4913a28c4e42cf8531ab38f7c3ed5d'),)¶
-
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-82c6ef1ab24944178fc517bbd9dd9b5d', 'security-group-name-d192f0e29dc7489ca801668404c63933', 'security-group-description-51563e9700c942a8b0ba4e75502c38d7', 'project-id-24db2e66cd684e6e93f6be1275d67f5e'),)¶
-
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-9d732c5326b34ff68e32bbd10e5b5e93', 'icmp', '0.0.0.0/0', 'security-group-id-538b26bc7beb467eb1045300defbdc4a', '', '')¶
-
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-732835897b6a43bfb42ecabc359a7a1b', None, None, 'project-id-3e8f7f90ed944a2e86d3c78f9bcfe8dc', None, 'remote-security-group-id-73492074469b4626af29db8da956afef', None, 'security-group-id-971f4aa0323941b9ab849be6624827cd')¶
-
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-00e7667c10f94acfb0c7be72b32d7fae', 'subnet-name-949fd11d023b44cd82a8df1aec1fd5df', 'network-id-29db4a63835a49958638cccfa3442ec4', '10.10.10.0/24'), ('subnet-id-6fbf9407fa4a4d1789e8a85554f7ac29', 'subnet-name-36c4b15ebd664ba29898758af43966bf', 'network-id-b346a7c9172842f4a4e8b8d2f280ca6e', '10.10.10.0/24'), ('subnet-id-e2c1059707814d1c94f1000982be9683', 'subnet-name-ac7f7feb26c044e882f945d1bd6dd985', 'network-id-6f5f9ff231ea478fadd01ea00d8684c0', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-00e7667c10f94acfb0c7be72b32d7fae', 'subnet-name-949fd11d023b44cd82a8df1aec1fd5df', 'network-id-29db4a63835a49958638cccfa3442ec4', '10.10.10.0/24', 'project-id-e8f79941d5124ce6818b247ebc1c3960', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-6fbf9407fa4a4d1789e8a85554f7ac29', 'subnet-name-36c4b15ebd664ba29898758af43966bf', 'network-id-b346a7c9172842f4a4e8b8d2f280ca6e', '10.10.10.0/24', 'project-id-6112ac73a5bd4e0d9032a351a6482155', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-e2c1059707814d1c94f1000982be9683', 'subnet-name-ac7f7feb26c044e882f945d1bd6dd985', 'network-id-6f5f9ff231ea478fadd01ea00d8684c0', '10.10.10.0/24', 'project-id-08d5d6e31a18427db89e346a62c8e951', 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-e2c1059707814d1c94f1000982be9683, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='47921789153872'>, name=subnet-name-ac7f7feb26c044e882f945d1bd6dd985, network_id=network-id-6f5f9ff231ea478fadd01ea00d8684c0, project_id=project-id-08d5d6e31a18427db89e346a62c8e951, subnetpool_id=None, tenant_id=project-id-08d5d6e31a18427db89e346a62c8e951>¶
-
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-8475c98522d646db8889d2a5d96644a8', '4', 'None', 'None', 'subnet-name-417ffbc8175c4f89aedf8fee3a6d7b2f', 'network-id-d686c63d347843bba9a886d1722eab37', 'project-id-cac574f9d7dc4a9f98f9c9ad0459a8c8', '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-feeb896b935e4b57bd98593701355dee', 'subnet-pool-name-34af2c4f3b0449a593c48a12ca924984', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-82727e1831454c7e9df9babeb00b5984', 'subnet-pool-name-35af318c844d416a9e0704c53d59f7c9', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-152289eeacc8438badb9465bbf1c6be4', 'subnet-pool-name-5039802de0204914a01c021efa6eef11', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-feeb896b935e4b57bd98593701355dee', 'subnet-pool-name-34af2c4f3b0449a593c48a12ca924984', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-70f2095c17554c0ea2dc47bef0b517ec'), ('subnet-pool-id-82727e1831454c7e9df9babeb00b5984', 'subnet-pool-name-35af318c844d416a9e0704c53d59f7c9', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-36787fc3a7bf4f0f9760844eeee33e20'), ('subnet-pool-id-152289eeacc8438badb9465bbf1c6be4', 'subnet-pool-name-5039802de0204914a01c021efa6eef11', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-5da7aaa030d347f29366be875b2180d1')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-5da7aaa030d347f29366be875b2180d1, default_prefixlen=8, default_quota=None, id=subnet-pool-id-152289eeacc8438badb9465bbf1c6be4, ip_version=4, is_default=False, keys=<MagicMock id='47921759067792'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-5039802de0204914a01c021efa6eef11, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-e3ef1f68d1ad42a7910f615d0e5fba84, shared=False, tenant_id=project-id-e3ef1f68d1ad42a7910f615d0e5fba84>¶
-
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-a137c246a8344268ba829092bc733845', 8, None, 'subnet-pool-id-3a58987fe2e9421d88b6d0b2cb236e79', 4, False, 32, 8, 'subnet-pool-name-9febb4f8886a400d92e769cba5bf09f3', '10.0.0.0/24, 10.1.0.0/24', 'project-id-a7f5e4841fa94dd1a2b4c2ad05bf7fd6', 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
()¶
-