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-3b08ed1dd6eb47b4a8978e14468e0d11, instance_id=server-id-78926b406700407799ece40cb231a3aa, 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-7f26390115b343b3b40ad7d7b82a85cb, id=floating-ip-id-48ccd0de83bb45eb81756749083c3650, keys=<MagicMock id='140052375468048'>, port_id=port-id-4416ad5064a444a1ae85579384da68ba, project_id=project-id-6fc3512fb0f1434381a1852587b4781c, router_id=router-id-1700220ff6774d4bb0a1430f2a57db21, status=DOWN, tenant_id=project-id-6fc3512fb0f1434381a1852587b4781c>¶
-
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-c563e77b3bce4087a301e60e8536ab16', '1.0.9.0', '2.0.9.0', 'server-id-6ce449bc5a6e43dca8f32a9f5e1f347c', 'public'), ('floating-ip-id-480ee875eb4c4575963e5d412cf944e7', '1.0.9.0', '2.0.9.0', 'server-id-f74e211869a5440db88d5e51697c8b99', 'public'), ('floating-ip-id-834ed743403b4d7f89110f3da7943ed3', '1.0.9.0', '2.0.9.0', 'server-id-ce0aca91a4024384845535149f21895a', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-c563e77b3bce4087a301e60e8536ab16, instance_id=server-id-6ce449bc5a6e43dca8f32a9f5e1f347c, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-480ee875eb4c4575963e5d412cf944e7, instance_id=server-id-f74e211869a5440db88d5e51697c8b99, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-834ed743403b4d7f89110f3da7943ed3, instance_id=server-id-ce0aca91a4024384845535149f21895a, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-834ed743403b4d7f89110f3da7943ed3, instance_id=server-id-ce0aca91a4024384845535149f21895a, 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-08638211a5714c3b9ff37c3413a9101d', '1.0.9.0', '2.0.9.0', 'port-id-0713e29ad22d4cb2acfc814833dfdfa4'), ('floating-ip-id-0136879abef3495aaab0ecec095752ba', '1.0.9.0', '2.0.9.0', 'port-id-71837df3787f45319e42ef15ab90c838'), ('floating-ip-id-6786538953b24169a637205a02b5e5cf', '1.0.9.0', '2.0.9.0', 'port-id-c94e8ac04f95432a91d9bbc17ff3af04')]¶
-
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-da80588983c5498399c8664c8da02eb9, id=floating-ip-id-08638211a5714c3b9ff37c3413a9101d, keys=<MagicMock id='140052275696784'>, port_id=port-id-0713e29ad22d4cb2acfc814833dfdfa4, project_id=project-id-83a02a8480004512a000a114c2f7b8ec, router_id=router-id-24b3ad62f29e4f75af09b32b10caded3, status=DOWN, tenant_id=project-id-83a02a8480004512a000a114c2f7b8ec>, <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-5511528c3628406298d60d810386bbef, id=floating-ip-id-0136879abef3495aaab0ecec095752ba, keys=<MagicMock id='140052293493136'>, port_id=port-id-71837df3787f45319e42ef15ab90c838, project_id=project-id-3bfa49b6af1d44f0907a851380b2247f, router_id=router-id-9040fa660a3a4431ba1af668246e593c, status=DOWN, tenant_id=project-id-3bfa49b6af1d44f0907a851380b2247f>, <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-dadc7feaa0a8445c8ec368af94d477b6, id=floating-ip-id-6786538953b24169a637205a02b5e5cf, keys=<MagicMock id='140052294754704'>, port_id=port-id-c94e8ac04f95432a91d9bbc17ff3af04, project_id=project-id-f22fde86e4ae428185dfbe1b2c5eb2fe, router_id=router-id-789b7f9db39a4343910e4328cf8a721e, status=DOWN, tenant_id=project-id-f22fde86e4ae428185dfbe1b2c5eb2fe>]¶
-
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-dadc7feaa0a8445c8ec368af94d477b6, id=floating-ip-id-6786538953b24169a637205a02b5e5cf, keys=<MagicMock id='140052294754704'>, port_id=port-id-c94e8ac04f95432a91d9bbc17ff3af04, project_id=project-id-f22fde86e4ae428185dfbe1b2c5eb2fe, router_id=router-id-789b7f9db39a4343910e4328cf8a721e, status=DOWN, tenant_id=project-id-f22fde86e4ae428185dfbe1b2c5eb2fe>¶
-
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-9308068f814746ec9dcf1745c44bdaf9', 'server-id-44ddafe8446a468298ff4ed2e488fa8e', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-9308068f814746ec9dcf1745c44bdaf9, instance_id=server-id-44ddafe8446a468298ff4ed2e488fa8e, 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-c65a44d4e4ec47a2be5ef90251bad611', 'floating-ip-id-d2147ea5b96f4496a69c8eb3e007f1fc', 'port-id-42a6188e207d466ebc4770962a4a980c', 'project-id-ce49f80cf8104cdb97a769c863dbd0bb', 'router-id-29442ac74df24253a08a6c121d06e9cb', '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-c65a44d4e4ec47a2be5ef90251bad611, id=floating-ip-id-d2147ea5b96f4496a69c8eb3e007f1fc, keys=<MagicMock id='140052277156304'>, port_id=port-id-42a6188e207d466ebc4770962a4a980c, project_id=project-id-ce49f80cf8104cdb97a769c863dbd0bb, router_id=router-id-29442ac74df24253a08a6c121d06e9cb, status=DOWN, tenant_id=project-id-ce49f80cf8104cdb97a769c863dbd0bb>¶
-
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-3bda33397ff04d7bb484dfd14109fafe', False, 'network-label-c55a75d4b0e04c788b7b894c52983470', None, False, '255.255.255.0', None, None, 'project-id-020bcbcef25646f9b54f1825713bf70c', 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-278b2b868eda4051a37e899512e189ba', 'network-name-2b3bb387b00346dbb9aaf80af71fe5de', '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-ee94d8a51415455b9db42ad90fa64efa', 'network-name-edcd7e53c34a44b4a3e63d59c1e674f4', '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-90ebf321e1d34d0487b7c96d7cb862be', 'network-name-3a50f1a44e794347af27398987cd310f', 'a, b'), ('network-id-03f90b1cedac46e5859b51e4a67ee265', 'network-name-cd28959a7f9d49cdb8c468d830f5fea1', 'a, b'), ('network-id-607e9095e0ef45e2bebb3912ab6be831', 'network-name-c4296a91d5c7498194bf261c0828db7c', 'a, b')]¶
-
data_long
= [('network-id-90ebf321e1d34d0487b7c96d7cb862be', 'network-name-3a50f1a44e794347af27398987cd310f', 'ACTIVE', 'project-id-4460f590dff24ddda4c7c7c7d72fc7ba', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-03f90b1cedac46e5859b51e4a67ee265', 'network-name-cd28959a7f9d49cdb8c468d830f5fea1', 'ACTIVE', 'project-id-bfd461c266094258960fecf72e3958a6', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-607e9095e0ef45e2bebb3912ab6be831', 'network-name-c4296a91d5c7498194bf261c0828db7c', 'ACTIVE', 'project-id-3edf2c4b142942be9e5475808af6017f', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-607e9095e0ef45e2bebb3912ab6be831, keys=<MagicMock id='140052362381584'>, name=network-name-c4296a91d5c7498194bf261c0828db7c, project_id=project-id-3edf2c4b142942be9e5475808af6017f, provider_network_type=vlan, router_external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-3edf2c4b142942be9e5475808af6017f>¶
-
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-59b49f7169664d7f89dbb1bf926271d8', 'network-label-6f8db95b3f8044e0963de74b06819b9b', '10.0.0.0/24'), ('network-id-daa5afcc9edb4c58a3ef42f17afb8bd7', 'network-label-576bfe159dd14b10b44ad8c87eb4a8be', '10.0.0.0/24'), ('network-id-0b2bc057fe35413598d7ef1b527b1933', 'network-label-f2c94c6f738b429b9053d5890b7d3581', '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-0b2bc057fe35413598d7ef1b527b1933, injected=False, keys=<MagicMock id='140052293472976'>, label=network-label-f2c94c6f738b429b9053d5890b7d3581, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-bc13ddfdec144a21b89eb52ffd5aff73, 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-ac9d509f319a44779adbcd1ca0f9aa7a', 'network-name-d1431e55c02d40d68c4bbda2883a8b63', 'project-id-a9432c1cc53d40058f3d8bc53f81aac1', '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-dde1432fcfd84130bc6ccbc486b2b52f', False, 'network-label-801a0467d54b49ff8190ba8af54a4054', None, False, '255.255.255.0', None, None, 'project-id-3e31afe57cfa41e6b08477adae07fc76', 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-15879c1df6f14009bbb921cca6074171', '', '', 'ovs', 'normal', 'device-id-a1a225f36f044010a3c3d1b97498c3f2', 'compute:nova', '', 'dns-name-e65d9c5d1243471998b9db484b974981', '', '', 'port-id-ec8a93d29b074e39b9a2fa3bfdea43c3', 'fa:16:3e:a9:4e:72', 'port-name-6114c81c77414a3a8b95a34425f579de', 'network-id-f2cdd94684aa41d4a7c708924e9c503a', True, 'project-id-65e7962a028a47a7a958e179cfc51b73', '', '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-bbc73c9056444a9d8ecccb2f93d4982c', 'router-name-ea00a60bad7445f4bf8cc33d954f3c18', 'project-id-5cef01b7961a4d5092bfaebeb447b978')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-bbc73c9056444a9d8ecccb2f93d4982c, keys=<MagicMock id='140052350466896'>, name=router-name-ea00a60bad7445f4bf8cc33d954f3c18, routes=[], status=ACTIVE, tenant_id=project-id-5cef01b7961a4d5092bfaebeb447b978>¶
-
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-ea4349b2406d42669a1e964df21e92a4', 'router-name-74da3cdf0f7a48618c74faa4de91f815', 'ACTIVE', 'UP', False, False, 'project-id-67743ff7d31946aab88ff1fc8afad0dc'), ('router-id-699b8535eaa34bb08bcd1323d766f978', 'router-name-b582cbf69def4150ad19ab23f4f6cc2e', 'ACTIVE', 'UP', False, False, 'project-id-a7e41e647de34c72b2452df9d42cbd45'), ('router-id-329e7f9036414676af21012c405724e7', 'router-name-5a7b53dd0d214eaa9ea8812c163ca752', 'ACTIVE', 'UP', False, False, 'project-id-3c0770a9182e48f99887516bbad9ac1b')]¶
-
data_long
= [('router-id-ea4349b2406d42669a1e964df21e92a4', 'router-name-74da3cdf0f7a48618c74faa4de91f815', 'ACTIVE', 'UP', False, False, 'project-id-67743ff7d31946aab88ff1fc8afad0dc', [], '{}', ''), ('router-id-699b8535eaa34bb08bcd1323d766f978', 'router-name-b582cbf69def4150ad19ab23f4f6cc2e', 'ACTIVE', 'UP', False, False, 'project-id-a7e41e647de34c72b2452df9d42cbd45', [], '{}', ''), ('router-id-329e7f9036414676af21012c405724e7', 'router-name-5a7b53dd0d214eaa9ea8812c163ca752', 'ACTIVE', 'UP', False, False, 'project-id-3c0770a9182e48f99887516bbad9ac1b', [], '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-329e7f9036414676af21012c405724e7, keys=<MagicMock id='140052355684752'>, name=router-name-5a7b53dd0d214eaa9ea8812c163ca752, routes=[], status=ACTIVE, tenant_id=project-id-3c0770a9182e48f99887516bbad9ac1b>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-ea4349b2406d42669a1e964df21e92a4, keys=<MagicMock id='140052346664464'>, name=router-name-74da3cdf0f7a48618c74faa4de91f815, routes=[], status=ACTIVE, tenant_id=project-id-67743ff7d31946aab88ff1fc8afad0dc>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-699b8535eaa34bb08bcd1323d766f978, keys=<MagicMock id='140052372642448'>, name=router-name-b582cbf69def4150ad19ab23f4f6cc2e, routes=[], status=ACTIVE, tenant_id=project-id-a7e41e647de34c72b2452df9d42cbd45>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-329e7f9036414676af21012c405724e7, keys=<MagicMock id='140052355684752'>, name=router-name-5a7b53dd0d214eaa9ea8812c163ca752, routes=[], status=ACTIVE, tenant_id=project-id-3c0770a9182e48f99887516bbad9ac1b>]¶
-
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-d6f8476643da47d8bd11ef04ccb6aa3c', 'router-name-ad941abfd87f419eaa6f1f159eb22f6f', 'project-id-9f229c9cd31842269197ee9de956b8fd')¶
-
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-fd344f3bf8e0403fb31a263b1d010056', 'security-group-name-95c1314dbd7e45379655d39fab010722', 'security-group-description-555dd00231894b07b5e2c226137ddd9c'),)¶
-
expected_data_all_projects
= (('security-group-id-fd344f3bf8e0403fb31a263b1d010056', 'security-group-name-95c1314dbd7e45379655d39fab010722', 'security-group-description-555dd00231894b07b5e2c226137ddd9c', 'project-id-4b4b0f885e454f6ab4044191432033e7'),)¶
-
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-ba3ceb05c19c4905bae22bf3c105743d', 'security-group-name-f5a8834936d9445ca0b6cc99beec61ba', 'security-group-description-697dc8c5484a4beb85360004fc9f3e16', 'project-id-bc5019f3ff6748c58041923b25e8c707'),)¶
-
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-2822292bfe174eeb947cde97e8f56025', 'icmp', '0.0.0.0/0', 'security-group-id-45342c04b370425e97533ee5f1298262', '', '')¶
-
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-e6330c86b75d4ed39357c77afd0c29b7', None, None, 'project-id-d5a9fb0e1be6417ea0a69fa8ea797028', None, 'remote-security-group-id-a76db5e286df4f1a85285c4b585e8002', None, 'security-group-id-e145d454fb3945bba812dd6f2228c514')¶
-
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-d4fa29689cdf4fa19c7d5fb408839e89', 'subnet-name-66f49a0c372047768de58a78af396208', 'network-id-cdeb37362491466c8f88170798a7eefb', '10.10.10.0/24'), ('subnet-id-14b24b6bbff247dbaf51ce17c421788e', 'subnet-name-1629bf93d91e43128788b91e8389cad9', 'network-id-35cf8b5045c744feb230b1466a8f44d1', '10.10.10.0/24'), ('subnet-id-2cd6bdd7fcd84cc1ac07cb43352ced18', 'subnet-name-761e8b74f4f74c568812d659b48b0cfb', 'network-id-95c0396776f54a7baf666bc144bbf3d1', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-d4fa29689cdf4fa19c7d5fb408839e89', 'subnet-name-66f49a0c372047768de58a78af396208', 'network-id-cdeb37362491466c8f88170798a7eefb', '10.10.10.0/24', 'project-id-2a895d1cfc8f48fc8fefdf59400c36d0', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-14b24b6bbff247dbaf51ce17c421788e', 'subnet-name-1629bf93d91e43128788b91e8389cad9', 'network-id-35cf8b5045c744feb230b1466a8f44d1', '10.10.10.0/24', 'project-id-6b8a45c8a00843c98473f9943ae73fea', True, '', '', '', '4', '10.10.10.1'), ('subnet-id-2cd6bdd7fcd84cc1ac07cb43352ced18', 'subnet-name-761e8b74f4f74c568812d659b48b0cfb', 'network-id-95c0396776f54a7baf666bc144bbf3d1', '10.10.10.0/24', 'project-id-f51cee79cb7a4267b2e1e57b023a33e5', 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-2cd6bdd7fcd84cc1ac07cb43352ced18, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, keys=<MagicMock id='140052283126864'>, name=subnet-name-761e8b74f4f74c568812d659b48b0cfb, network_id=network-id-95c0396776f54a7baf666bc144bbf3d1, project_id=project-id-f51cee79cb7a4267b2e1e57b023a33e5, subnetpool_id=None, tenant_id=project-id-f51cee79cb7a4267b2e1e57b023a33e5>¶
-
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-d9d0013b5f8e4d31859d817551e853cb', '4', 'None', 'None', 'subnet-name-9bd41f0466be46e8bd6049c6ed57e845', 'network-id-93cfecab535d4853825c4da2519283ec', 'project-id-ca0363d3992c4eeabfdf18ad1c93458e', '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-70cb305d0c3843f9a6f541a081343c15', 'subnet-pool-name-4de539a663704d959ead92be546d3e65', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-caf0e3b644ba4d5dbeb8a17d41e35408', 'subnet-pool-name-ff85d418cc44427c820147f27e6a6375', ['10.0.0.0/24', '10.1.0.0/24']), ('subnet-pool-id-dc2b8a833dbb43a7ab66071d3ccb5e0e', 'subnet-pool-name-5e3e6715e6f547e9b359fda6e6f87215', ['10.0.0.0/24', '10.1.0.0/24'])]¶
-
data_long
= [('subnet-pool-id-70cb305d0c3843f9a6f541a081343c15', 'subnet-pool-name-4de539a663704d959ead92be546d3e65', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-20833af0ddfd43fab3c00930a2a01bdc'), ('subnet-pool-id-caf0e3b644ba4d5dbeb8a17d41e35408', 'subnet-pool-name-ff85d418cc44427c820147f27e6a6375', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-659796bdb69b49f99b1e8ef17694ff84'), ('subnet-pool-id-dc2b8a833dbb43a7ab66071d3ccb5e0e', 'subnet-pool-name-5e3e6715e6f547e9b359fda6e6f87215', ['10.0.0.0/24', '10.1.0.0/24'], 8, 'address-scope-id-b64cc1d98911458292cb1576d76b39ff')]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-b64cc1d98911458292cb1576d76b39ff, default_prefixlen=8, default_quota=None, id=subnet-pool-id-dc2b8a833dbb43a7ab66071d3ccb5e0e, ip_version=4, is_default=False, keys=<MagicMock id='140052298502480'>, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-5e3e6715e6f547e9b359fda6e6f87215, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-c1d36fa8476f49a0823567d49d1d813d, shared=False, tenant_id=project-id-c1d36fa8476f49a0823567d49d1d813d>¶
-
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-4d2501090b9f4c00beb35f402037e36e', 8, None, 'subnet-pool-id-2c52f8b2e5ea49a5b303bfaac25a12a6', 4, False, 32, 8, 'subnet-pool-name-2104558606484e3e9d2e1f91a7ba71d2', '10.0.0.0/24, 10.1.0.0/24', 'project-id-96fcce8ba4cc4bd58f8fc115c94d8489', 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
()¶
-