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-ec5a8901386d46c48984dca3b6273c43, instance_id=server-id-dd4476e950de45969ec9e229d2defc78, 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-654ed229bfc64388b999077a961ff580, id=floating-ip-id-6cdf2694d5694baf8aaefc3ccdd9812d, keys=<MagicMock id='47162955433168'>, port_id=port-id-2d24124958254b7383d0f3fd70cf309a, project_id=project-id-0c97543b184a4f699ac1c060c5702de6, router_id=router-id-f8ff3a0ea374434a9068d022704f662c, status=DOWN, tenant_id=project-id-0c97543b184a4f699ac1c060c5702de6>¶
-
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-4e9e52399d134c1d8391253c4e130502', '1.0.9.0', '2.0.9.0', 'server-id-71a6f0a5885f4c3fa42f09f74e100131', 'public'), ('floating-ip-id-ff2cffd54e2c48c6b9862e93b3ca0a55', '1.0.9.0', '2.0.9.0', 'server-id-53380d38af144bd6a2bbc528add82da0', 'public'), ('floating-ip-id-55874ca5f2474068b1ae7a47fed89fa7', '1.0.9.0', '2.0.9.0', 'server-id-b9d5bf86c8284bd6a68267c92b265e7c', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-4e9e52399d134c1d8391253c4e130502, instance_id=server-id-71a6f0a5885f4c3fa42f09f74e100131, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-ff2cffd54e2c48c6b9862e93b3ca0a55, instance_id=server-id-53380d38af144bd6a2bbc528add82da0, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-55874ca5f2474068b1ae7a47fed89fa7, instance_id=server-id-b9d5bf86c8284bd6a68267c92b265e7c, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-55874ca5f2474068b1ae7a47fed89fa7, instance_id=server-id-b9d5bf86c8284bd6a68267c92b265e7c, 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-ff8985a9445a4a1dbbbeb3416e4c9aa3', '1.0.9.0', '2.0.9.0', 'port-id-b00cb34d058e465591a7619aecb15a18'), ('floating-ip-id-fb0b63efe65d450f9cdce4451f4dfe13', '1.0.9.0', '2.0.9.0', 'port-id-7d11778b3b6b43d3abe7a175f9cdc0b8'), ('floating-ip-id-e5200c8e1f4d43ec83fdd4ea152282fa', '1.0.9.0', '2.0.9.0', 'port-id-94db78f7c6044562a0df8a60251f8a2e')]¶
-
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-b3f491b632e346f692b59a6f0578ebce, id=floating-ip-id-ff8985a9445a4a1dbbbeb3416e4c9aa3, keys=<MagicMock id='47163034130896'>, port_id=port-id-b00cb34d058e465591a7619aecb15a18, project_id=project-id-f931c1f9297140998f4085475bca015c, router_id=router-id-eeca03f281bc490facdd4a3baea9f6ee, status=DOWN, tenant_id=project-id-f931c1f9297140998f4085475bca015c>, <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-7b38d44ea9cd4bed9fe39086b888b3b2, id=floating-ip-id-fb0b63efe65d450f9cdce4451f4dfe13, keys=<MagicMock id='47163034242640'>, port_id=port-id-7d11778b3b6b43d3abe7a175f9cdc0b8, project_id=project-id-ba42d90d1fbe4afd956a59f51d604d88, router_id=router-id-7c6a14b7cffa45eea811f68be50cfe81, status=DOWN, tenant_id=project-id-ba42d90d1fbe4afd956a59f51d604d88>, <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-6ccc1a70304d47d0975a532fbc4b966c, id=floating-ip-id-e5200c8e1f4d43ec83fdd4ea152282fa, keys=<MagicMock id='47163034128848'>, port_id=port-id-94db78f7c6044562a0df8a60251f8a2e, project_id=project-id-8dc3cb584182433c94529f70ad9fa816, router_id=router-id-f08068f55a4242efb92524ee0207e619, status=DOWN, tenant_id=project-id-8dc3cb584182433c94529f70ad9fa816>]¶
-
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-6ccc1a70304d47d0975a532fbc4b966c, id=floating-ip-id-e5200c8e1f4d43ec83fdd4ea152282fa, keys=<MagicMock id='47163034128848'>, port_id=port-id-94db78f7c6044562a0df8a60251f8a2e, project_id=project-id-8dc3cb584182433c94529f70ad9fa816, router_id=router-id-f08068f55a4242efb92524ee0207e619, status=DOWN, tenant_id=project-id-8dc3cb584182433c94529f70ad9fa816>¶
-
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-71f4fb23b5ee45e0b0318f021e48ace5', 'server-id-e86f143326c24685afbae5622e3d6433', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-71f4fb23b5ee45e0b0318f021e48ace5, instance_id=server-id-e86f143326c24685afbae5622e3d6433, 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-4f82398f2f3648e3b7994267be565593', 'floating-ip-id-15d5e39e30024ae486d4a34280b0ae1c', 'port-id-8c67c3f6d83240eeada02159b026b5a5', 'project-id-f474502ba2614ea896380e0709fd65c7', 'router-id-e16890b661da4e018b1e966fb27f6731', '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-4f82398f2f3648e3b7994267be565593, id=floating-ip-id-15d5e39e30024ae486d4a34280b0ae1c, keys=<MagicMock id='47162968555472'>, port_id=port-id-8c67c3f6d83240eeada02159b026b5a5, project_id=project-id-f474502ba2614ea896380e0709fd65c7, router_id=router-id-e16890b661da4e018b1e966fb27f6731, status=DOWN, tenant_id=project-id-f474502ba2614ea896380e0709fd65c7>¶
-
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-fa20b8a8e62049fb9682df57f50c9e76', False, 'network-label-c1d01dc6bfc148d395020f03cecaf4ce', None, False, '255.255.255.0', None, None, 'project-id-5bc546669191488094ad39133c024bf5', 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-d97abfc4d9c74bf8abd48f6ab942266c', 'network-name-07e4af20412348afb1c23c6e59c8e14c', '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-e7d58226c387415f9975a94b55d6fd11', 'network-name-57a4b29fcf9045caba008fc866f9b13a', '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-147123796bfa4a73a53c95899d6e65b6', 'network-name-56a8b4503a39443ea8fa839d8d50590d', 'a, b'), ('network-id-1774a08a51694669b9730d7f61bb9bf0', 'network-name-ee95436853d4446fb8ebf2bc7fda1e08', 'a, b'), ('network-id-798c49fa4d2f4a62bddc3611400b75cf', 'network-name-a0141bfd347b4e68aa3e97a99f167508', 'a, b')]¶
-
data_long
= [('network-id-147123796bfa4a73a53c95899d6e65b6', 'network-name-56a8b4503a39443ea8fa839d8d50590d', 'ACTIVE', 'project-id-e5c28c982acb43e99c5b4b2eb3201fc6', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-1774a08a51694669b9730d7f61bb9bf0', 'network-name-ee95436853d4446fb8ebf2bc7fda1e08', 'ACTIVE', 'project-id-5f864b2c12c843a19618d6840d6f70a5', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-798c49fa4d2f4a62bddc3611400b75cf', 'network-name-a0141bfd347b4e68aa3e97a99f167508', 'ACTIVE', 'project-id-33333063981c4384bf6a9e1bc4414cd6', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-798c49fa4d2f4a62bddc3611400b75cf, keys=<MagicMock id='47163056138960'>, name=network-name-a0141bfd347b4e68aa3e97a99f167508, project_id=project-id-33333063981c4384bf6a9e1bc4414cd6, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-33333063981c4384bf6a9e1bc4414cd6>¶
-
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-5e421c50c0e248ebaaeda1fae5c53966', 'network-label-dd24d787712a430ba440ff29af2d3409', '10.0.0.0/24'), ('network-id-0e5a8542e7b944c083a3091c680f65e1', 'network-label-6dc3edc2735e4849b508642d4495289c', '10.0.0.0/24'), ('network-id-b098b21247a547dbb781c41e31491885', 'network-label-7df817f615734977bb6c490fe5950ec0', '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-b098b21247a547dbb781c41e31491885, injected=False, keys=<MagicMock id='47163040188880'>, label=network-label-7df817f615734977bb6c490fe5950ec0, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-94d9960cef4b4aad9e57bc51e5f392b3, 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-ad5f6683955742d08d1f1a2cb492b4e9', 'network-name-a54861e6022a4f58bcdb96c5590e6d35', 'project-id-f8437b5c141b4227b867a1b99ca01424', '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-82ff65f9972d4e2898d8d4da2e5cd71c', False, 'network-label-27aa2d2e3d6d4711be970bd102830ffa', None, False, '255.255.255.0', None, None, 'project-id-e98e07397eb8420b8abf3fa2dc2e61ba', 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-f461e56fed4a4350be2fe95031efc3ad', '', '', 'ovs', 'normal', 'device-id-fe1109652e2742238e8f5f44eb3f1097', 'compute:nova', '', 'dns-name-6561e9f6c15d49bfb2abfe2c52a51b67', '', '', 'port-id-ac44830b93fd44f69a785c787b3ba97c', 'fa:16:3e:a9:4e:72', 'port-name-3b2dcb96600e4f4d9479ec35f303e65e', 'network-id-e10da5d13722412b8d2534a3c5afcc12', True, 'project-id-0c66c2dbfa7e456da21cd33ab03d1467', '', '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-a0c79c2a66a04660bdc88023488d6805', 'router-name-bedcd9fb3dde482a880866fb25280d03', 'project-id-1233bf5c0b404ea3b9e455a9cae8611e')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-a0c79c2a66a04660bdc88023488d6805, keys=<MagicMock id='47162999082640'>, name=router-name-bedcd9fb3dde482a880866fb25280d03, routes=[], status=ACTIVE, tenant_id=project-id-1233bf5c0b404ea3b9e455a9cae8611e>¶
-
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-9d3390c4eefc43f1bfc57930500e40a0', 'router-name-6b28e2482ed942948967485902d9b3e7', 'ACTIVE', 'UP', False, False, 'project-id-d748a4161f4f48d081b0b3e8484cbccf'), ('router-id-03e0601e77a04bbd9c02b6504ccd1a05', 'router-name-d58d2a83a4a846bc849e61433f398abb', 'ACTIVE', 'UP', False, False, 'project-id-21492181eb214d359ba5b178d8f4804f'), ('router-id-fba2008b02584b2eae382decf66605b6', 'router-name-b511f340042c4a22916381ffbfbe098d', 'ACTIVE', 'UP', False, False, 'project-id-92d14a1b839b42feac8db514bdba5876')]¶
-
data_long
= [('router-id-9d3390c4eefc43f1bfc57930500e40a0', 'router-name-6b28e2482ed942948967485902d9b3e7', 'ACTIVE', 'UP', False, False, 'project-id-d748a4161f4f48d081b0b3e8484cbccf', [], '{}', ''), ('router-id-03e0601e77a04bbd9c02b6504ccd1a05', 'router-name-d58d2a83a4a846bc849e61433f398abb', 'ACTIVE', 'UP', False, False, 'project-id-21492181eb214d359ba5b178d8f4804f', [], '{}', ''), ('router-id-fba2008b02584b2eae382decf66605b6', 'router-name-b511f340042c4a22916381ffbfbe098d', 'ACTIVE', 'UP', False, False, 'project-id-92d14a1b839b42feac8db514bdba5876', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fba2008b02584b2eae382decf66605b6, keys=<MagicMock id='47162952523024'>, name=router-name-b511f340042c4a22916381ffbfbe098d, routes=[], status=ACTIVE, tenant_id=project-id-92d14a1b839b42feac8db514bdba5876>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-9d3390c4eefc43f1bfc57930500e40a0, keys=<MagicMock id='47163040504656'>, name=router-name-6b28e2482ed942948967485902d9b3e7, routes=[], status=ACTIVE, tenant_id=project-id-d748a4161f4f48d081b0b3e8484cbccf>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-03e0601e77a04bbd9c02b6504ccd1a05, keys=<MagicMock id='47162963656080'>, name=router-name-d58d2a83a4a846bc849e61433f398abb, routes=[], status=ACTIVE, tenant_id=project-id-21492181eb214d359ba5b178d8f4804f>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-fba2008b02584b2eae382decf66605b6, keys=<MagicMock id='47162952523024'>, name=router-name-b511f340042c4a22916381ffbfbe098d, routes=[], status=ACTIVE, tenant_id=project-id-92d14a1b839b42feac8db514bdba5876>]¶
-
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-116f74e55e924e5997f8e94e25c97b64', 'router-name-c528da058c7b463fb5ba3e97e06d1326', 'project-id-e796fb83ede24fc5917680908fd38314')¶
-
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-185c4ed56a294d08a747e31b757b1edd', 'security-group-name-571cfa306715446687e61ae6d0f7d381', 'security-group-description-0fb1ea574f8746f3bf4c443e58fd8f62'),)¶
-
expected_data_all_projects
= (('security-group-id-185c4ed56a294d08a747e31b757b1edd', 'security-group-name-571cfa306715446687e61ae6d0f7d381', 'security-group-description-0fb1ea574f8746f3bf4c443e58fd8f62', 'project-id-d3ae29c5c8bc41c8928a55bc21862b7e'),)¶
-
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-fa2405b7cc49449a9aa637ddabbb751d', 'security-group-name-8f325ad1286e4d30af5928d44c9a30b2', 'security-group-description-ae5e9f0243434d5792e00de44fa8ba22', 'project-id-5435bb1f48974cbea0d709b6d3df5823'),)¶
-
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-3013345c3bc44c06ac42c5f6011a09bd', 'icmp', '0.0.0.0/0', 'security-group-id-64622a8b77614659883ac16654cc947b', '', '')¶
-
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-4a34a3d785224146973641429cd69e32', None, None, 'project-id-0657b72e6f5447fc875fa7d4485bba36', None, 'remote-security-group-id-0ff82256bdff4f7cb3cc594f2933a876', None, 'security-group-id-3754ae7c7d844257865f736d57dfcc94')¶
-
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-9c9958e4a14c4314a7e039dc9c5a9641', 'subnet-name-cdb76c41c6d7480a9ea9457ca9774633', 'network-id-ae13b39688b24183ac13686139b00699', '10.10.10.0/24'), ('subnet-id-d1ae8beb637b491f93a5af10be567ea7', 'subnet-name-2e43e84ab00945e4b4499b3a150d9fc2', 'network-id-1f4928cc66604ce1933191949cc3ead7', '10.10.10.0/24'), ('subnet-id-7b213f84404646a38f2a06a16ad72305', 'subnet-name-56a51ac7ed6b46e7a50af21e6ac1645d', 'network-id-d2bf3dff189f4feeafc07c119cf4d085', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-9c9958e4a14c4314a7e039dc9c5a9641', 'subnet-name-cdb76c41c6d7480a9ea9457ca9774633', 'network-id-ae13b39688b24183ac13686139b00699', '10.10.10.0/24', 'project-id-61880d41626943bf986c94da6ee15729', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-d1ae8beb637b491f93a5af10be567ea7', 'subnet-name-2e43e84ab00945e4b4499b3a150d9fc2', 'network-id-1f4928cc66604ce1933191949cc3ead7', '10.10.10.0/24', 'project-id-a4cf5fed81034296a26c1e5e56935320', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-7b213f84404646a38f2a06a16ad72305', 'subnet-name-56a51ac7ed6b46e7a50af21e6ac1645d', 'network-id-d2bf3dff189f4feeafc07c119cf4d085', '10.10.10.0/24', 'project-id-834e7d4885d841539c0d853e515434c1', 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-7b213f84404646a38f2a06a16ad72305, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='47163003809360'>, name=subnet-name-56a51ac7ed6b46e7a50af21e6ac1645d, network_id=network-id-d2bf3dff189f4feeafc07c119cf4d085, project_id=project-id-834e7d4885d841539c0d853e515434c1, subnetpool_id=None, tenant_id=project-id-834e7d4885d841539c0d853e515434c1>¶
-
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-735e3d44578c46459ae8fc7b49bc0884', '4', 'None', 'None', 'subnet-name-c79c2dd7f1c24283a6c8762c66dc4f9a', 'network-id-10d725b58e3e43d48d6add2cf3da7c3a', 'project-id-86208d071f804e53a24eb2658fb80781', '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-e51a8dad8e07461984f135f3087a189d', 'subnet-pool-name-71d04f60cb3f45a697e93d65bfb52c0b', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-03a12050f0854d7a86b90980d754dd1c', 'subnet-pool-name-c9499827512042d0a269f7e76f685793', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-4e7e9247a4bc4b72b4193693846cd13b', 'subnet-pool-name-cb5e96ef5a7e4451b355fe4b6184118c', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-e51a8dad8e07461984f135f3087a189d', 'subnet-pool-name-71d04f60cb3f45a697e93d65bfb52c0b', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-fd413ed99ff944649454e9891c625a64'), ('subnet-pool-id-03a12050f0854d7a86b90980d754dd1c', 'subnet-pool-name-c9499827512042d0a269f7e76f685793', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-7bdaebb9a9f84a3e92c14d2d1b76585e'), ('subnet-pool-id-4e7e9247a4bc4b72b4193693846cd13b', 'subnet-pool-name-cb5e96ef5a7e4451b355fe4b6184118c', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-03dae60e03d24dd98917b63524e70a60')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-03dae60e03d24dd98917b63524e70a60, default_prefixlen=8, default_quota=None, id=subnet-pool-id-4e7e9247a4bc4b72b4193693846cd13b, ip_version=4, is_default=False, keys=<MagicMock id='47163053310992'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-cb5e96ef5a7e4451b355fe4b6184118c, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-24a14819c0ac405dbf1fccab4ade2c14, shared=False, tenant_id=project-id-24a14819c0ac405dbf1fccab4ade2c14>¶
-
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-2e91c347ba37422e98beddf2d05d96c4', 8, None, 'subnet-pool-id-f08794d4ea4e42b7b0008e0743ea190e', 4, False, 32, 8, 'subnet-pool-name-66a403d225ea4d3e96222117b3eb95a4', '10.0.0.0/24, 10.1.0.0/24', 'project-id-ac4ed28a844d49bab8429ef8bc24eb45', 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
()¶
-