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-b345a63c4b4a42299c054d5d6f199040, instance_id=server-id-7cf63bf59df742c29aad6a62fedd5d0a, 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-7873afa487d249d5847b0c9a76b1bafb, id=floating-ip-id-13795a5cafc746a5a89de457ec64438b, keys=<MagicMock id='140173132264144'>, port_id=port-id-32c9623edca44e90a5fb29b5afe4d546, project_id=project-id-09055e193b2a424f9bd6ce19958010a1, router_id=router-id-350c236555494373ac96ef4373ff6a04, status=DOWN, tenant_id=project-id-09055e193b2a424f9bd6ce19958010a1>¶
-
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-6bfa3f52852b48f3bec3b0250f5cda5b', '1.0.9.0', '2.0.9.0', 'server-id-78b29028e3de49b8b7bf1a8b6c97d369', 'public'), ('floating-ip-id-3c2a674bbfb44af5bb4d2cde69a5c777', '1.0.9.0', '2.0.9.0', 'server-id-833bc148dc9c4d71963d45c7f6bfbdd8', 'public'), ('floating-ip-id-d06cc342331245459b0ee8c10f31e091', '1.0.9.0', '2.0.9.0', 'server-id-981bbb9a0e8648d4a7cf6f2c30072f69', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-6bfa3f52852b48f3bec3b0250f5cda5b, instance_id=server-id-78b29028e3de49b8b7bf1a8b6c97d369, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-3c2a674bbfb44af5bb4d2cde69a5c777, instance_id=server-id-833bc148dc9c4d71963d45c7f6bfbdd8, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-d06cc342331245459b0ee8c10f31e091, instance_id=server-id-981bbb9a0e8648d4a7cf6f2c30072f69, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-d06cc342331245459b0ee8c10f31e091, instance_id=server-id-981bbb9a0e8648d4a7cf6f2c30072f69, 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-1c339764fe454e4a8abacad63de58e50', '1.0.9.0', '2.0.9.0', 'port-id-2b1d8fc248c14b89b515164d0770918a'), ('floating-ip-id-86bb82a1da6a4b829b174593bad0013b', '1.0.9.0', '2.0.9.0', 'port-id-dff12dc174ab42bf8b769b43185178dc'), ('floating-ip-id-9eab3d9d60d74c11bc0a7f4aa20cc382', '1.0.9.0', '2.0.9.0', 'port-id-837c4fb2378e47dcad2ab3b4954d18f8')]¶
-
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-d964cb0e85ef4b15989b737060121f01, id=floating-ip-id-1c339764fe454e4a8abacad63de58e50, keys=<MagicMock id='140173128819664'>, port_id=port-id-2b1d8fc248c14b89b515164d0770918a, project_id=project-id-eb1cd89d6fcd4b48b87f61887ec4689a, router_id=router-id-19e153ff01674dd397152936a972f87e, status=DOWN, tenant_id=project-id-eb1cd89d6fcd4b48b87f61887ec4689a>, <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-b9fa7daa2c0d480e903579d857a69b1b, id=floating-ip-id-86bb82a1da6a4b829b174593bad0013b, keys=<MagicMock id='140173128061520'>, port_id=port-id-dff12dc174ab42bf8b769b43185178dc, project_id=project-id-19f051d1aade43de8a6f9d27105e5541, router_id=router-id-a75e70edc242436b8a0d46d89cd0c49d, status=DOWN, tenant_id=project-id-19f051d1aade43de8a6f9d27105e5541>, <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-c754bc476a2643d5acf31d1ed44edfa4, id=floating-ip-id-9eab3d9d60d74c11bc0a7f4aa20cc382, keys=<MagicMock id='140173128533648'>, port_id=port-id-837c4fb2378e47dcad2ab3b4954d18f8, project_id=project-id-a37d9bcecf4441caad8683cf0a6eb2a5, router_id=router-id-40239f96f7e641668c2676d422c1f3d4, status=DOWN, tenant_id=project-id-a37d9bcecf4441caad8683cf0a6eb2a5>]¶
-
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-c754bc476a2643d5acf31d1ed44edfa4, id=floating-ip-id-9eab3d9d60d74c11bc0a7f4aa20cc382, keys=<MagicMock id='140173128533648'>, port_id=port-id-837c4fb2378e47dcad2ab3b4954d18f8, project_id=project-id-a37d9bcecf4441caad8683cf0a6eb2a5, router_id=router-id-40239f96f7e641668c2676d422c1f3d4, status=DOWN, tenant_id=project-id-a37d9bcecf4441caad8683cf0a6eb2a5>¶
-
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-75ce9038a1d64522a165cb9ae6d3d830', 'server-id-6b2d453a91d846aeaee907efae96b434', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-75ce9038a1d64522a165cb9ae6d3d830, instance_id=server-id-6b2d453a91d846aeaee907efae96b434, 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-378fdfc065b844d8bcbc717b138740ec', 'floating-ip-id-033b2945a54c487089bc2082fce4183d', 'port-id-5c8c3bf175d947f7a14cbded2da60f94', 'project-id-8d788ca4303847beabd54f7de7df4742', 'router-id-2042d16153cd47acba4a537e74bd8fac', '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-378fdfc065b844d8bcbc717b138740ec, id=floating-ip-id-033b2945a54c487089bc2082fce4183d, keys=<MagicMock id='140173144282192'>, port_id=port-id-5c8c3bf175d947f7a14cbded2da60f94, project_id=project-id-8d788ca4303847beabd54f7de7df4742, router_id=router-id-2042d16153cd47acba4a537e74bd8fac, status=DOWN, tenant_id=project-id-8d788ca4303847beabd54f7de7df4742>¶
-
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-a3bd20ab705d472eb57140372a26c932', False, 'network-label-e22db286532344a09bc92fae830e4539', None, False, '255.255.255.0', None, None, 'project-id-f64e949937f74d56941fafa9d0025f06', 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-d9a062ea339a485b8ee153e89ceaafea', 'network-name-20828805c59f4f6d9193471a67c6ecde', '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-0822a210f6934f55aa686b7fc1cdf587', 'network-name-fcde043cb43343109b1e8862d5d7b9ca', '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-798567e9fab14e26aaade09858376e84', 'network-name-bcfd9ad0f4bd4e569deaab24d6cfa23d', 'a, b'), ('network-id-ea84c9a439d649979da40550ff1f62a3', 'network-name-c1aecae6636c409285e9c73af6143c01', 'a, b'), ('network-id-d2fd254e13d54c5bb5eae2b479067d51', 'network-name-07c30828dfb148d3ae84000c992bc922', 'a, b')]¶
-
data_long
= [('network-id-798567e9fab14e26aaade09858376e84', 'network-name-bcfd9ad0f4bd4e569deaab24d6cfa23d', 'ACTIVE', 'project-id-11c690de6b124fb5979f982989553987', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-ea84c9a439d649979da40550ff1f62a3', 'network-name-c1aecae6636c409285e9c73af6143c01', 'ACTIVE', 'project-id-ff4310c62d984a2994c51e7eb2f6a8e1', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-d2fd254e13d54c5bb5eae2b479067d51', 'network-name-07c30828dfb148d3ae84000c992bc922', 'ACTIVE', 'project-id-f015ad12f2394a79a6cea39d43ec6397', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-d2fd254e13d54c5bb5eae2b479067d51, keys=<MagicMock id='140173128625808'>, name=network-name-07c30828dfb148d3ae84000c992bc922, project_id=project-id-f015ad12f2394a79a6cea39d43ec6397, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-f015ad12f2394a79a6cea39d43ec6397>¶
-
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-b772b28bd22f4a609e772599300a0f6a', 'network-label-7b95abbaa99a418da047671af7cccd9c', '10.0.0.0/24'), ('network-id-7a00940a76894528af2e46d8f9b590fc', 'network-label-9e3fedf62b304b1fa221d28a041cd4e6', '10.0.0.0/24'), ('network-id-a4a28eecbfa64675ad5b2c5efc0b4bfe', 'network-label-07c5b28e70274d3cbb509b0193020d99', '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-a4a28eecbfa64675ad5b2c5efc0b4bfe, injected=False, keys=<MagicMock id='140173150800272'>, label=network-label-07c5b28e70274d3cbb509b0193020d99, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-860061b92aaa4bcba7abf8579f6411e7, 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-b90bddcb64964bea9f2a2a7467dcb6e1', 'network-name-0019d6c2843043698268dc5b2424fd5d', 'project-id-2a05303ac9f04891a1bdcaa3c053abae', '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-69610485d7fa4f97ac3999eae18c4b07', False, 'network-label-dd2391b68cbb4ccdb9e341f02908191c', None, False, '255.255.255.0', None, None, 'project-id-dcadb9b7c2fe4995bb96dba3025341e3', 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-16fc4fd586c14cbb92fb2ad7566827f5', '', '', 'ovs', 'normal', 'device-id-59e6fb528745460495dd577a207db6f6', 'compute:nova', '', 'dns-name-e6d39184721c4f8ea4d384953bf2ff70', '', '', 'port-id-75bd0b0cf50245e2a05d1cc63f5ce993', 'fa:16:3e:a9:4e:72', 'port-name-34b6ae0910ae4e45987faa2e6275732b', 'network-id-115bb7f03fe3439393ce3f9f60373bc2', True, 'project-id-39d68db6578f423281190f0c4296ef4a', '', '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-c462c3023d244786b9d8eb80b3b3362c', 'router-name-805106baa262457ca4603557a9dabfd0', 'project-id-06e0db66fd904dd194482d7a79f5ed50')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-c462c3023d244786b9d8eb80b3b3362c, keys=<MagicMock id='140173138193424'>, name=router-name-805106baa262457ca4603557a9dabfd0, routes=[], status=ACTIVE, tenant_id=project-id-06e0db66fd904dd194482d7a79f5ed50>¶
-
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-c26159d25ded497f9fbe475c5af26b9e', 'router-name-4625c8f6499e4e99bf45e6f41e83ee33', 'ACTIVE', 'UP', False, False, 'project-id-f56e5c8406604df298b4fb43c4afb7fc'), ('router-id-7ec4f427473c4b4f90c84d45de4d6d03', 'router-name-2c03a17fc9c54f3fb9998c0e83233a54', 'ACTIVE', 'UP', False, False, 'project-id-700b203171e144c2b54d2926feee3812'), ('router-id-fc6c6db932624a5a91aea36507d1e836', 'router-name-29cf8edb56e34950b3c5616d8758efe5', 'ACTIVE', 'UP', False, False, 'project-id-8ed4b9939585488782ecb93c7f6cc458')]¶
-
data_long
= [('router-id-c26159d25ded497f9fbe475c5af26b9e', 'router-name-4625c8f6499e4e99bf45e6f41e83ee33', 'ACTIVE', 'UP', False, False, 'project-id-f56e5c8406604df298b4fb43c4afb7fc', [], '{}', ''), ('router-id-7ec4f427473c4b4f90c84d45de4d6d03', 'router-name-2c03a17fc9c54f3fb9998c0e83233a54', 'ACTIVE', 'UP', False, False, 'project-id-700b203171e144c2b54d2926feee3812', [], '{}', ''), ('router-id-fc6c6db932624a5a91aea36507d1e836', 'router-name-29cf8edb56e34950b3c5616d8758efe5', 'ACTIVE', 'UP', False, False, 'project-id-8ed4b9939585488782ecb93c7f6cc458', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fc6c6db932624a5a91aea36507d1e836, keys=<MagicMock id='140173117686224'>, name=router-name-29cf8edb56e34950b3c5616d8758efe5, routes=[], status=ACTIVE, tenant_id=project-id-8ed4b9939585488782ecb93c7f6cc458>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-c26159d25ded497f9fbe475c5af26b9e, keys=<MagicMock id='140173146473168'>, name=router-name-4625c8f6499e4e99bf45e6f41e83ee33, routes=[], status=ACTIVE, tenant_id=project-id-f56e5c8406604df298b4fb43c4afb7fc>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-7ec4f427473c4b4f90c84d45de4d6d03, keys=<MagicMock id='140173155870800'>, name=router-name-2c03a17fc9c54f3fb9998c0e83233a54, routes=[], status=ACTIVE, tenant_id=project-id-700b203171e144c2b54d2926feee3812>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fc6c6db932624a5a91aea36507d1e836, keys=<MagicMock id='140173117686224'>, name=router-name-29cf8edb56e34950b3c5616d8758efe5, routes=[], status=ACTIVE, tenant_id=project-id-8ed4b9939585488782ecb93c7f6cc458>]¶
-
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-99de21b3d7c14a1b907fbb247e52d226', 'router-name-1a5d2bd166dd434b9c560cebaf2da7b4', 'project-id-6bad0d72b2004c68ab088fdeaa52a722')¶
-
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-ab71c94f831b420688c0fcf541f97f8b', 'security-group-name-7bc9d807f80e48f2b23b48b187e3d559', 'security-group-description-874d6ebcbd4e48d6b750752eafa2038c'),)¶
-
expected_data_all_projects
= (('security-group-id-ab71c94f831b420688c0fcf541f97f8b', 'security-group-name-7bc9d807f80e48f2b23b48b187e3d559', 'security-group-description-874d6ebcbd4e48d6b750752eafa2038c', 'project-id-5b7d44778f814d58ac2ac2235e56ef52'),)¶
-
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-163cc7e95a114f1f827de7028e5f4ec8', 'security-group-name-ac72296c143f4bdcb9c4b36719b0e2a6', 'security-group-description-f7f7feb998b143c1897a196c3986192a', 'project-id-ad892f34ff5e46bca03691cdd99b5362'),)¶
-
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-e397eebeb245428fa73d2777cbc76d02', 'icmp', '0.0.0.0/0', 'security-group-id-4fb82c94c32144c9b87cbfd70c984ae2', '', '')¶
-
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-11541b7f926e44b5a0a2d7c696ad2196', None, None, 'project-id-b2e62a35ca5f48fe8b7aa75302679a61', None, 'remote-security-group-id-417c6db323754ebfad44b2b796dec965', None, 'security-group-id-064e08ad07e54bdd8aef48375b76ceba')¶
-
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-def8b3920a0a460a8f38c69c8b10a776', 'subnet-name-76d09d7737c4432fa4e45020cddef86f', 'network-id-7a21d6ddcf1d470abedfd5a8c107e362', '10.10.10.0/24'), ('subnet-id-83d34cfc13464700ab395fd250d5996a', 'subnet-name-1f486fc744fa4b45adffdf1424ce0ad5', 'network-id-299ed9ce66134db7ae485bca4c2c1f01', '10.10.10.0/24'), ('subnet-id-72da04704d7d4c29aaa3495c587e73c7', 'subnet-name-e90f1ab41a9647a9949d818e44bbc5b8', 'network-id-54c123333dc44db9a5c6620f6dde4091', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-def8b3920a0a460a8f38c69c8b10a776', 'subnet-name-76d09d7737c4432fa4e45020cddef86f', 'network-id-7a21d6ddcf1d470abedfd5a8c107e362', '10.10.10.0/24', 'project-id-e8ce2c3634bd43e1904aee9276ad599f', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-83d34cfc13464700ab395fd250d5996a', 'subnet-name-1f486fc744fa4b45adffdf1424ce0ad5', 'network-id-299ed9ce66134db7ae485bca4c2c1f01', '10.10.10.0/24', 'project-id-38069a84d327479f92e490a31b91dcac', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-72da04704d7d4c29aaa3495c587e73c7', 'subnet-name-e90f1ab41a9647a9949d818e44bbc5b8', 'network-id-54c123333dc44db9a5c6620f6dde4091', '10.10.10.0/24', 'project-id-4b833242cb924e469d2a500b5a68ebb7', 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-72da04704d7d4c29aaa3495c587e73c7, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='140173116206096'>, name=subnet-name-e90f1ab41a9647a9949d818e44bbc5b8, network_id=network-id-54c123333dc44db9a5c6620f6dde4091, project_id=project-id-4b833242cb924e469d2a500b5a68ebb7, subnetpool_id=None, tenant_id=project-id-4b833242cb924e469d2a500b5a68ebb7>¶
-
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-fc8b04a0843a41be99aaa1c05c6e69bf', '4', 'None', 'None', 'subnet-name-f7a8a7b1219f4e0e9cb538e5cb59d7f6', 'network-id-191d6e1706294140a0bd0ce6b4f8f6d0', 'project-id-d4cb22a276d7467383253bc6f1b3f086', '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-1d450cd7bc6b48afac22907ccac7da94', 'subnet-pool-name-c2857ab0bab24aeba31981ba5c005318', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-4aacf83cbb9c4628ba4f0261755d5f56', 'subnet-pool-name-e98aecfd65634f51a99d26a02b8b37bf', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-e8087ac5ed274f3987346dcd32914550', 'subnet-pool-name-82db44ac7a1945b8936937232c56d1b9', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-1d450cd7bc6b48afac22907ccac7da94', 'subnet-pool-name-c2857ab0bab24aeba31981ba5c005318', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-6825c7970fb14b3eadc6985f95a0c31d'), ('subnet-pool-id-4aacf83cbb9c4628ba4f0261755d5f56', 'subnet-pool-name-e98aecfd65634f51a99d26a02b8b37bf', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-2845256e11df406ca3a3d096c0a088b6'), ('subnet-pool-id-e8087ac5ed274f3987346dcd32914550', 'subnet-pool-name-82db44ac7a1945b8936937232c56d1b9', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-defb6541381745ebbce7afdd5d2c8f57')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-defb6541381745ebbce7afdd5d2c8f57, default_prefixlen=8, default_quota=None, id=subnet-pool-id-e8087ac5ed274f3987346dcd32914550, ip_version=4, is_default=False, keys=<MagicMock id='140173257864464'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-82db44ac7a1945b8936937232c56d1b9, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-ed3e4d28937c4b9198461190ef560151, shared=False, tenant_id=project-id-ed3e4d28937c4b9198461190ef560151>¶
-
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-aa571a4eed764bb4a7c6f58c46c60ba5', 8, None, 'subnet-pool-id-3df0164e6dac455990a995eb906df65d', 4, False, 32, 8, 'subnet-pool-name-348e13a028214484bccebee855e79399', '10.0.0.0/24, 10.1.0.0/24', 'project-id-ee04abffeb514b45a4acac666fc00fc7', 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
()¶
-