openstackclient.tests.network.v2 package¶
Submodules¶
openstackclient.tests.network.v2.fakes module¶
-
class
openstackclient.tests.network.v2.fakes.
FakeAddressScope
¶ Bases:
object
Fake one or more address scopes.
-
static
create_address_scopes
(attrs=None, count=2)¶ Create multiple fake address scopes.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of address scopes to fake
Returns: A list of FakeResource objects faking the address scopes
-
static
create_one_address_scope
(attrs=None)¶ Create a fake address scope.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object with name, id, etc.
-
static
get_address_scopes
(address_scopes=None, count=2)¶ Get an iterable MagicMock object with a list of faked address scopes.
If address scopes list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: - address scopes (List) – A list of FakeResource objects faking address scopes
- count (int) – The number of address scopes to fake
Returns: An iterable Mock object with side_effect set to a list of faked address scopes
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeAvailabilityZone
¶ Bases:
object
Fake one or more network availability zones (AZs).
-
static
create_availability_zones
(attrs=None, count=2)¶ Create multiple fake AZs.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of AZs to fake
Returns: A list of FakeResource objects faking the AZs
-
static
create_one_availability_zone
(attrs=None)¶ Create a fake AZ.
Parameters: attrs (Dictionary) – A dictionary with all attributes 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=None, count=2)¶ Create multiple fake floating ips.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake floating ip.
Parameters: attrs (Dictionary) – A dictionary with all attributes 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.
FakeIPAvailability
¶ Bases:
object
Fake one or more network ip availabilities.
-
static
create_ip_availability
(count=2)¶ Create fake list of ip availability stats of multiple networks.
Parameters: count (int) – The number of networks to fake Returns: A list of FakeResource objects faking network ip availability stats
-
static
create_one_ip_availability
()¶ Create a fake list with ip availability stats of a network.
Returns: A FakeResource object with network_name, network_id, etc.
-
static
-
class
openstackclient.tests.network.v2.fakes.
FakeNetwork
¶ Bases:
object
Fake one or more networks.
-
static
create_networks
(attrs=None, count=2)¶ Create multiple fake networks.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of networks to fake
Returns: A list of FakeResource objects faking the networks
-
static
create_one_network
(attrs=None)¶ Create a fake network.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, etc.
-
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.
FakeNetworkSegment
¶ Bases:
object
Fake one or more network segments.
-
static
create_network_segments
(attrs=None, count=2)¶ Create multiple fake network segments.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of network segments to fake
Returns: A list of FakeResource objects faking the network segments
-
static
create_one_network_segment
(attrs=None)¶ Create a fake network segment.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object faking the network segment
-
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=None)¶ Create a fake port.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, etc.
-
static
create_ports
(attrs=None, count=2)¶ Create multiple fake ports.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake router.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, admin_state_up, status, tenant_id
-
static
create_routers
(attrs=None, count=2)¶ Create multiple fake routers.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake security group.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, etc.
-
static
create_security_groups
(attrs=None, count=2)¶ Create multiple fake security groups.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake security group rule.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, etc.
-
static
create_security_group_rules
(attrs=None, count=2)¶ Create multiple fake security group rules.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake subnet.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object faking the subnet
-
static
create_subnets
(attrs=None, count=2)¶ Create multiple fake subnets.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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=None)¶ Create a fake subnet pool.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object faking the subnet pool
-
static
create_subnet_pools
(attrs=None, count=2)¶ Create multiple fake subnet pools.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- 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_address_scope module¶
-
class
openstackclient.tests.network.v2.test_address_scope.
TestAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.fakes.TestNetworkV2
-
setUp
()¶
-
-
class
openstackclient.tests.network.v2.test_address_scope.
TestCreateAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_address_scope.TestAddressScope
-
columns
= ('id', 'ip_version', 'name', 'project_id', 'shared')¶
-
data
= ('address-scope-id-155fcf8032ac48658fbf6e5d5230aa59', 4, 'address-scope-name-af58590595e84bac8eb88ed1a0216688', '8-9-64', False)¶
-
new_address_scope
= <FakeResource id=address-scope-id-155fcf8032ac48658fbf6e5d5230aa59, ip_version=4, name=address-scope-name-af58590595e84bac8eb88ed1a0216688, project_id=8-9-64, shared=False, tenant_id=8-9-64>¶
-
setUp
()¶
-
test_create_all_options
()¶
-
test_create_default_options
()¶
-
test_create_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_address_scope.
TestDeleteAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_address_scope.TestAddressScope
-
setUp
()¶
-
test_address_scope_delete
()¶
-
test_multi_address_scopes_delete
()¶
-
test_multi_address_scopes_delete_with_exception
()¶
-
-
class
openstackclient.tests.network.v2.test_address_scope.
TestListAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_address_scope.TestAddressScope
-
address_scopes
= [<FakeResource id=address-scope-id-b8eb2d8743d14a0eb45952068d5668be, ip_version=4, name=address-scope-name-f122240e24554313b12bb661f5f3bf21, project_id=project-id-def4ad067d634a8a9de4c79240ba33fa, shared=False, tenant_id=project-id-def4ad067d634a8a9de4c79240ba33fa>, <FakeResource id=address-scope-id-46f86e4e262a481b936e34a17f2ed865, ip_version=4, name=address-scope-name-639fea7d1afc4827901fc7c32816fac1, project_id=project-id-3658281f3a0a4b29952ab1aef43763ea, shared=False, tenant_id=project-id-3658281f3a0a4b29952ab1aef43763ea>, <FakeResource id=address-scope-id-56f9858a2ec64f1da2a834cb3bd16a02, ip_version=4, name=address-scope-name-f07050022bd042c98d184bf0696dcd64, project_id=project-id-658ded671527479fb51eb7400bed8fe4, shared=False, tenant_id=project-id-658ded671527479fb51eb7400bed8fe4>]¶
-
columns
= ('ID', 'Name', 'IP Version', 'Shared', 'Project')¶
-
data
= [('address-scope-id-b8eb2d8743d14a0eb45952068d5668be', 'address-scope-name-f122240e24554313b12bb661f5f3bf21', 4, False, 'project-id-def4ad067d634a8a9de4c79240ba33fa'), ('address-scope-id-46f86e4e262a481b936e34a17f2ed865', 'address-scope-name-639fea7d1afc4827901fc7c32816fac1', 4, False, 'project-id-3658281f3a0a4b29952ab1aef43763ea'), ('address-scope-id-56f9858a2ec64f1da2a834cb3bd16a02', 'address-scope-name-f07050022bd042c98d184bf0696dcd64', 4, False, 'project-id-658ded671527479fb51eb7400bed8fe4')]¶
-
scope
= <FakeResource id=address-scope-id-56f9858a2ec64f1da2a834cb3bd16a02, ip_version=4, name=address-scope-name-f07050022bd042c98d184bf0696dcd64, project_id=project-id-658ded671527479fb51eb7400bed8fe4, shared=False, tenant_id=project-id-658ded671527479fb51eb7400bed8fe4>¶
-
setUp
()¶
-
test_address_scope_list
()¶
-
-
class
openstackclient.tests.network.v2.test_address_scope.
TestSetAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_address_scope.TestAddressScope
-
setUp
()¶
-
test_set_nothing
()¶
-
-
class
openstackclient.tests.network.v2.test_address_scope.
TestShowAddressScope
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_address_scope.TestAddressScope
-
columns
= ('id', 'ip_version', 'name', 'project_id', 'shared')¶
-
data
= ('address-scope-id-9962ac491a37494891ef6f7b0a85a1e9', 4, 'address-scope-name-1816be50745e4207904c439b65c28f53', 'project-id-1574ab68d3104d59805468886b61cf8d', False)¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_floating_ip module¶
-
class
openstackclient.tests.network.v2.test_floating_ip.
TestCreateFloatingIPCompute
(*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-5356a6322b5c4cfd8bce4c74c8a3cd83', 'server-id-2d23f3c1712f467dbd3fe8614a425441', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-5356a6322b5c4cfd8bce4c74c8a3cd83, instance_id=server-id-2d23f3c1712f467dbd3fe8614a425441, ip=1.0.9.0, pool=public>¶
-
setUp
()¶
-
test_create_default_options
()¶
-
test_create_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_floating_ip.
TestCreateFloatingIPNetwork
(*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-2df373521f114ca19a7a3af10732be09', 'floating-ip-id-3b2299e427e3439a8264b070ac398358', 'port-id-1f501d9dbdc04dd0ad66bb4a347df223', 'project-id-963cfcec2dc544dba0608f9acd7a26d4', 'router-id-a23718bc7c0a47f997b3ebf77b2fe30a', '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-2df373521f114ca19a7a3af10732be09, id=floating-ip-id-3b2299e427e3439a8264b070ac398358, port_id=port-id-1f501d9dbdc04dd0ad66bb4a347df223, project_id=project-id-963cfcec2dc544dba0608f9acd7a26d4, router_id=router-id-a23718bc7c0a47f997b3ebf77b2fe30a, status=DOWN, tenant_id=project-id-963cfcec2dc544dba0608f9acd7a26d4>¶
-
floating_network
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-2df373521f114ca19a7a3af10732be09, is_default=False, is_router_external=True, name=network-name-3098ac9e98034d19991554c573622180, project_id=project-id-13d3056db0244d04b9ddbf229c264207, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-13d3056db0244d04b9ddbf229c264207>¶
-
port
= <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-285f2da641bd4bf7abf991c3b6e3b6fd, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-285f2da641bd4bf7abf991c3b6e3b6fd, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-0a8a1dccc37c4e4cb2239ee9b9f6a76a, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-04d6b9e1e0324f498e7ff706699ef59b, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-1f501d9dbdc04dd0ad66bb4a347df223, mac_address=fa:16:3e:a9:4e:72, name=port-name-6d780bb8ab5d4a4a887f4ea3f5042bd5, network_id=network-id-d07ec880efb046298d3bb94552852a76, port_security_enabled=True, project_id=project-id-b6ad480c534c4183a85dd5f73f8cdb3b, security_groups=[], status=ACTIVE, tenant_id=project-id-b6ad480c534c4183a85dd5f73f8cdb3b>¶
-
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-777b3b16eb734f8989bebddfa161c3a0, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-a6168ffd56fc46b9b89aa2fbf109f7b0, network_id=network-id-e16ad18933e24a0c870e50b85a625a7c, project_id=project-id-aef76146834e4902b4d3deeee811b0cd, subnetpool_id=None, tenant_id=project-id-aef76146834e4902b4d3deeee811b0cd>¶
-
test_create_all_options
()¶
-
test_create_default_options
()¶
-
test_create_no_options
()¶
-
-
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-19232712f25344d9b9957e62115cf487, instance_id=server-id-7864785be62d4502bde61df428bf922e, 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-ecdbc91d327d472884327eda55d29926, id=floating-ip-id-e112cd0e500647c0baf4854835e8bdb9, port_id=port-id-1be8556877b44f838b99ddc33e1d66de, project_id=project-id-2118f9f6140041dcb88f78cda1505607, router_id=router-id-ad45a2b2ad1f4d54a6b30f5e7564497a, status=DOWN, tenant_id=project-id-2118f9f6140041dcb88f78cda1505607>¶
-
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-833cc9e4da1f490ea94cae56e6aad8d6', '1.0.9.0', '2.0.9.0', 'server-id-16b060aa636b4709a49f999b77ee8ab0', 'public'), ('floating-ip-id-b3ab387bb85143ba880e9a4c66fe930e', '1.0.9.0', '2.0.9.0', 'server-id-aef7a06a073442739c63823a67412854', 'public'), ('floating-ip-id-668c0f3a89b141ff8b298d200fdceedc', '1.0.9.0', '2.0.9.0', 'server-id-0d55686f472945fdb3467d26850e4131', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-833cc9e4da1f490ea94cae56e6aad8d6, instance_id=server-id-16b060aa636b4709a49f999b77ee8ab0, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-b3ab387bb85143ba880e9a4c66fe930e, instance_id=server-id-aef7a06a073442739c63823a67412854, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-668c0f3a89b141ff8b298d200fdceedc, instance_id=server-id-0d55686f472945fdb3467d26850e4131, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-668c0f3a89b141ff8b298d200fdceedc, instance_id=server-id-0d55686f472945fdb3467d26850e4131, 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-fd3b110d1f664b62b3bc6467939e694d', '1.0.9.0', '2.0.9.0', 'port-id-6287f75035254e22914c772519952f29'), ('floating-ip-id-812667b671324198a155d327814a00d3', '1.0.9.0', '2.0.9.0', 'port-id-6d00368efd624922aa2b929644b98f00'), ('floating-ip-id-9c16c1654daa45fa8a3c1bcb16f39b8b', '1.0.9.0', '2.0.9.0', 'port-id-7088a7e68b984ee19a7f6fc0b74fec8b')]¶
-
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-6a4f28a8f02e4ed58e0df1cf236efa19, id=floating-ip-id-fd3b110d1f664b62b3bc6467939e694d, port_id=port-id-6287f75035254e22914c772519952f29, project_id=project-id-b154a2a245c8403196e6b601a51c135e, router_id=router-id-29c9149b864f46b9b6816825fd220fa7, status=DOWN, tenant_id=project-id-b154a2a245c8403196e6b601a51c135e>, <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-85ba951277524542860b95a52fdbed61, id=floating-ip-id-812667b671324198a155d327814a00d3, port_id=port-id-6d00368efd624922aa2b929644b98f00, project_id=project-id-a1cbf5fc887c4a21b8c41a3f6ae4dda8, router_id=router-id-5e05fb0691e2478ab7d34ff90db391e2, status=DOWN, tenant_id=project-id-a1cbf5fc887c4a21b8c41a3f6ae4dda8>, <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-018f4fe0934947999934672076aff425, id=floating-ip-id-9c16c1654daa45fa8a3c1bcb16f39b8b, port_id=port-id-7088a7e68b984ee19a7f6fc0b74fec8b, project_id=project-id-f082204c989a463296da23916b93bedc, router_id=router-id-1bd80afb32884accbe8b620be0fd3c3c, status=DOWN, tenant_id=project-id-f082204c989a463296da23916b93bedc>]¶
-
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-018f4fe0934947999934672076aff425, id=floating-ip-id-9c16c1654daa45fa8a3c1bcb16f39b8b, port_id=port-id-7088a7e68b984ee19a7f6fc0b74fec8b, project_id=project-id-f082204c989a463296da23916b93bedc, router_id=router-id-1bd80afb32884accbe8b620be0fd3c3c, status=DOWN, tenant_id=project-id-f082204c989a463296da23916b93bedc>¶
-
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-6ff1e746b68946039d9707d49a5dc3d2', 'server-id-1e66f06164ac4764b83cb9c6f2e41c7d', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-6ff1e746b68946039d9707d49a5dc3d2, instance_id=server-id-1e66f06164ac4764b83cb9c6f2e41c7d, 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-d0c8cf83f272482aa93c5ddc8d8507fa', 'floating-ip-id-75f79d56e191496f8a69aecd69ceee36', 'port-id-d1957868cb1d45b586042d283622edff', 'project-id-6b55220d529c4f499919eb60358aaffe', 'router-id-9db7b2396c7c49ccb107f9394ff087ee', '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-d0c8cf83f272482aa93c5ddc8d8507fa, id=floating-ip-id-75f79d56e191496f8a69aecd69ceee36, port_id=port-id-d1957868cb1d45b586042d283622edff, project_id=project-id-6b55220d529c4f499919eb60358aaffe, router_id=router-id-9db7b2396c7c49ccb107f9394ff087ee, status=DOWN, tenant_id=project-id-6b55220d529c4f499919eb60358aaffe>¶
-
setUp
()¶
-
test_floating_ip_show
()¶
-
openstackclient.tests.network.v2.test_ip_availability module¶
-
class
openstackclient.tests.network.v2.test_ip_availability.
TestIPAvailability
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.fakes.TestNetworkV2
-
setUp
()¶
-
-
class
openstackclient.tests.network.v2.test_ip_availability.
TestListIPAvailability
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_ip_availability.TestIPAvailability
-
columns
= ('Network ID', 'Network Name', 'Total IPs', 'Used IPs')¶
-
data
= [('network-id-0a250ec015cb49a79bec75b49986a210', 'network-name-182fa3644ee74524a9ac30e9a5b4bf33', 254, 6), ('network-id-dfd983c27c6c4de3a5b496596479dc07', 'network-name-a96a826b109f48b9b1d3df489c009317', 254, 6), ('network-id-5640cdc842e649788f7682ed9c7f0ad5', 'network-name-31644958737445a1b9599bd870cad02f', 254, 6)]¶
-
net
= <FakeResource network_id=network-id-5640cdc842e649788f7682ed9c7f0ad5, network_name=network-name-31644958737445a1b9599bd870cad02f, subnet_ip_availability=[], tenant_id=, total_ips=254, used_ips=6>¶
-
setUp
()¶
-
test_list_ip_version
()¶
-
test_list_no_options
()¶
-
test_list_project
()¶
-
-
class
openstackclient.tests.network.v2.test_ip_availability.
TestShowIPAvailability
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_ip_availability.TestIPAvailability
-
columns
= ('network_id', 'network_name', 'project_id', 'subnet_ip_availability', 'total_ips', 'used_ips')¶
-
data
= ('network-id-8faed7727d324306bbf5d8f9f2475002', 'network-name-1286da65722e4698b3b41ce4bb005b60', '', '', 254, 6)¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_option
()¶
-
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-36bedc7f276a49788d1715522ac53d35', False, 'network-label-836d96b3f634499eb6a461d88677c0bf', None, False, '255.255.255.0', None, None, 'project-id-896377b95c61498a8ef99fe765ce5022', 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', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')¶
-
data
= ('UP', '', '', 'network-id-19a13ae703574b559f68d3ee8c46b810', False, 'network-name-41ee715ee7074b1db8520d210c871cd2', '8-9-64', 'vlan', 'External', False, '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', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')¶
-
data
= ('UP', 'nova', '', 'network-id-2cfb5058418e4f868ee939ee9d39a177', False, 'network-name-d4d7dd63c2f64d3e9784e52e507d3197', '8-9-64', 'vlan', 'External', False, '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_multiple_networks
()¶
-
test_delete_multiple_networks_exception
()¶
-
test_delete_one_network
()¶
-
-
class
openstackclient.tests.network.v2.test_network.
TestDeleteNetworkCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_network.TestNetworkCompute
-
setUp
()¶
-
test_delete_multiple_networks
()¶
-
test_delete_multiple_networks_exception
()¶
-
test_delete_one_network
()¶
-
-
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-d3f4e07ffc344c2fb8084fb3850da384', 'network-name-477e1cda815a4704a9e12e525bcad735', 'a, b'), ('network-id-dce4dc2957c44338823c40c146f41992', 'network-name-546fb252c97e4124af23d2a6ff2dd633', 'a, b'), ('network-id-00cacb52fd6b43229fbf9ab7be791a66', 'network-name-ab4e1faa17df4c39bbbe5ce7a826582e', 'a, b')]¶
-
data_long
= [('network-id-d3f4e07ffc344c2fb8084fb3850da384', 'network-name-477e1cda815a4704a9e12e525bcad735', 'ACTIVE', 'project-id-577f683e442c43af8a6ff6a4ca28eb13', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-dce4dc2957c44338823c40c146f41992', 'network-name-546fb252c97e4124af23d2a6ff2dd633', 'ACTIVE', 'project-id-1508df46038f4ba0866ee7d00db95bba', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-00cacb52fd6b43229fbf9ab7be791a66', 'network-name-ab4e1faa17df4c39bbbe5ce7a826582e', 'ACTIVE', 'project-id-c82380a2f56d44f5bcee709ec8e97e87', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-00cacb52fd6b43229fbf9ab7be791a66, is_default=False, is_router_external=True, name=network-name-ab4e1faa17df4c39bbbe5ce7a826582e, project_id=project-id-c82380a2f56d44f5bcee709ec8e97e87, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-c82380a2f56d44f5bcee709ec8e97e87>¶
-
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-a77ce5f12c6248a09bca52aae32c3c21', 'network-label-cff76e3a8df64dabaee8060e8736bb8b', '10.0.0.0/24'), ('network-id-0e2a9ab035a044159b13dd496b4556ac', 'network-label-888fdbc5cd4f4d93acbe3059002b5fd9', '10.0.0.0/24'), ('network-id-94d8f3e0feb14e4db0cc546baadb7084', 'network-label-ce41e5024fb34ed7b401067ca5d9978c', '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-94d8f3e0feb14e4db0cc546baadb7084, injected=False, label=network-label-ce41e5024fb34ed7b401067ca5d9978c, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-88dbf957fbe84481a52daaaf8fe169de, 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', 'is_default', 'name', 'project_id', 'provider_network_type', 'router:external', 'shared', 'status', 'subnets')¶
-
data
= ('UP', '', '', 'network-id-b89028bb57994e028db7c0b638cf7983', False, 'network-name-cf01dd0e1aa046d9b92fb5c8a21387aa', 'project-id-64cebc55ed0b4c7eb93dfeb88646f5f7', 'vlan', 'External', False, '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-ae0da8c6eea5484ea2edc36580e2e3da', False, 'network-label-280e2d1b85044a59abe6e490362afedd', None, False, '255.255.255.0', None, None, 'project-id-cabb60a729234ce7b2ceccd56a9b4b0b', None, False, None, None, None, None, None)¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_network_segment module¶
-
class
openstackclient.tests.network.v2.test_network_segment.
TestListNetworkSegment
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_network_segment.TestNetworkSegment
-
columns
= ('ID', 'Network', 'Network Type', 'Segment')¶
-
columns_long
= ('ID', 'Network', 'Network Type', 'Segment', 'Physical Network')¶
-
data
= [('segment-id-f07b32a129b645a0b9ba45fcf196b056', 'network-id-d2202036c8a349c4a6ff049a552fd56e', 'vlan', 1024), ('segment-id-b22cb60b7cb34032ab42c4cfb142219b', 'network-id-f87b2118cd444b9aac6478c1f93e0f14', 'vlan', 1024), ('segment-id-ea9577d72971489a885f558073e41d56', 'network-id-6a354488b0914fd1846fcb6a60532bec', 'vlan', 1024)]¶
-
data_long
= [('segment-id-f07b32a129b645a0b9ba45fcf196b056', 'network-id-d2202036c8a349c4a6ff049a552fd56e', 'vlan', 1024, 'physical-network-name-487a8f2edc6d43d193eaa9bf18ea5b10'), ('segment-id-b22cb60b7cb34032ab42c4cfb142219b', 'network-id-f87b2118cd444b9aac6478c1f93e0f14', 'vlan', 1024, 'physical-network-name-e2f4516de281417dbc137fed896827c0'), ('segment-id-ea9577d72971489a885f558073e41d56', 'network-id-6a354488b0914fd1846fcb6a60532bec', 'vlan', 1024, 'physical-network-name-1953c5d55f154ae8bbba1fc97445f691')]¶
-
setUp
()¶
-
test_list_long
()¶
-
test_list_network
()¶
-
test_list_no_beta_commands
()¶
-
test_list_no_option
()¶
-
-
class
openstackclient.tests.network.v2.test_network_segment.
TestNetworkSegment
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.fakes.TestNetworkV2
-
setUp
()¶
-
-
class
openstackclient.tests.network.v2.test_network_segment.
TestShowNetworkSegment
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_network_segment.TestNetworkSegment
-
columns
= ('id', 'network_id', 'network_type', 'physical_network', 'segmentation_id')¶
-
data
= ('segment-id-7b1c80872f644957b25fc250f5aef030', 'network-id-6a0a8e63df8c4cc68f2fe5b8419bc73e', 'vlan', 'physical-network-name-5bb76965dc474372aa30b32122226a51', 1024)¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_beta_commands
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_port module¶
-
class
openstackclient.tests.network.v2.test_port.
TestCreatePort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
setUp
()¶
-
test_create_default_options
()¶
-
test_create_full_options
()¶
-
-
class
openstackclient.tests.network.v2.test_port.
TestDeletePort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
setUp
()¶
-
test_multi_ports_delete
()¶
-
test_multi_ports_delete_with_exception
()¶
-
test_port_delete
()¶
-
-
class
openstackclient.tests.network.v2.test_port.
TestListPort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
columns
= ('ID', 'Name', 'MAC Address', 'Fixed IP Addresses')¶
-
data
= [('port-id-17c912fac3664367943413a2261d6703', 'port-name-20133115fbfc413cb220af700a450943', 'fa:16:3e:a9:4e:72', ''), ('port-id-430dd18376e648668de369c4521505de', 'port-name-f63c4372721548cdb2306125dfe5c5ec', 'fa:16:3e:a9:4e:72', ''), ('port-id-941a3c6c4e484d2cbd646e21c154f42c', 'port-name-1d778d23cf23471f93ddbe47f4d2729b', 'fa:16:3e:a9:4e:72', '')]¶
-
prt
= <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-d1e9a475dc654362a726e8d13fd2fdf2, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-d1e9a475dc654362a726e8d13fd2fdf2, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-d3b228dd1682476fa57a6457265f94f9, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-45bdf3a2dcdb470295028deefc78cc6b, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-941a3c6c4e484d2cbd646e21c154f42c, mac_address=fa:16:3e:a9:4e:72, name=port-name-1d778d23cf23471f93ddbe47f4d2729b, network_id=network-id-01744eb1335345bdb2eec336c2f72d52, port_security_enabled=True, project_id=project-id-1759117dca5748b3bd9ecf5635f9ffc5, security_groups=[], status=ACTIVE, tenant_id=project-id-1759117dca5748b3bd9ecf5635f9ffc5>¶
-
setUp
()¶
-
test_port_list_no_options
()¶
-
test_port_list_router_opt
()¶
-
-
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.
TestSetPort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
setUp
()¶
-
test_append_fixed_ip
()¶
-
test_set_fixed_ip
()¶
-
test_set_that
()¶
-
test_set_this
()¶
-
-
class
openstackclient.tests.network.v2.test_port.
TestShowPort
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_port.TestPort
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_router module¶
-
class
openstackclient.tests.network.v2.test_router.
TestAddPortToRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
Add port to Router
-
setUp
()¶
-
test_add_port_no_option
()¶
-
test_add_port_required_options
()¶
-
-
class
openstackclient.tests.network.v2.test_router.
TestAddSubnetToRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
Add subnet to Router
-
setUp
()¶
-
test_add_subnet_no_option
()¶
-
test_add_subnet_required_options
()¶
-
-
class
openstackclient.tests.network.v2.test_router.
TestCreateRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
-
columns
= ('admin_state_up', 'availability_zone_hints', 'availability_zones', 'distributed', 'external_gateway_info', 'ha', 'id', 'name', 'project_id', 'routes', 'status')¶
-
data
= ('UP', '', '', False, '{}', False, 'router-id-0d0cf349cd444e29a87331ef1090edd5', 'router-name-09622ab1426848efbcc2a401ed8fdf07', 'project-id-944f23fd5d9844c88c1248029f8f338d', '', 'ACTIVE')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-0d0cf349cd444e29a87331ef1090edd5, name=router-name-09622ab1426848efbcc2a401ed8fdf07, project_id=project-id-944f23fd5d9844c88c1248029f8f338d, routes=[], status=ACTIVE, tenant_id=project-id-944f23fd5d9844c88c1248029f8f338d>¶
-
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-ceda9b2b85d241c1bf51451e625c7985', 'router-name-61fab066c9bc4056919e9d60681f99ab', 'ACTIVE', 'UP', False, False, 'project-id-236223c28fa5451e98076d9451a49f51'), ('router-id-17822b07831e45a68aeb760f3af1d34b', 'router-name-a3220987371d4b828ab3fb060293ba69', 'ACTIVE', 'UP', False, False, 'project-id-4d8539af7f554f9eb2f1c8265028c7ed'), ('router-id-364d91c6b9774e41ae6e86bf8b1f214f', 'router-name-366fa83146a145458f7fe33af77e0989', 'ACTIVE', 'UP', False, False, 'project-id-1f8c64c17fb84fb8a56e5e62f893407c')]¶
-
data_long
= [('router-id-ceda9b2b85d241c1bf51451e625c7985', 'router-name-61fab066c9bc4056919e9d60681f99ab', 'ACTIVE', 'UP', False, False, 'project-id-236223c28fa5451e98076d9451a49f51', '', '{}', ''), ('router-id-17822b07831e45a68aeb760f3af1d34b', 'router-name-a3220987371d4b828ab3fb060293ba69', 'ACTIVE', 'UP', False, False, 'project-id-4d8539af7f554f9eb2f1c8265028c7ed', '', '{}', ''), ('router-id-364d91c6b9774e41ae6e86bf8b1f214f', 'router-name-366fa83146a145458f7fe33af77e0989', 'ACTIVE', 'UP', False, False, 'project-id-1f8c64c17fb84fb8a56e5e62f893407c', '', '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-364d91c6b9774e41ae6e86bf8b1f214f, name=router-name-366fa83146a145458f7fe33af77e0989, project_id=project-id-1f8c64c17fb84fb8a56e5e62f893407c, routes=[], status=ACTIVE, tenant_id=project-id-1f8c64c17fb84fb8a56e5e62f893407c>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-ceda9b2b85d241c1bf51451e625c7985, name=router-name-61fab066c9bc4056919e9d60681f99ab, project_id=project-id-236223c28fa5451e98076d9451a49f51, routes=[], status=ACTIVE, tenant_id=project-id-236223c28fa5451e98076d9451a49f51>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-17822b07831e45a68aeb760f3af1d34b, name=router-name-a3220987371d4b828ab3fb060293ba69, project_id=project-id-4d8539af7f554f9eb2f1c8265028c7ed, routes=[], status=ACTIVE, tenant_id=project-id-4d8539af7f554f9eb2f1c8265028c7ed>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-364d91c6b9774e41ae6e86bf8b1f214f, name=router-name-366fa83146a145458f7fe33af77e0989, project_id=project-id-1f8c64c17fb84fb8a56e5e62f893407c, routes=[], status=ACTIVE, tenant_id=project-id-1f8c64c17fb84fb8a56e5e62f893407c>]¶
-
setUp
()¶
-
test_router_list_long
()¶
-
test_router_list_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_router.
TestRemovePortFromRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
Remove port from a Router
-
setUp
()¶
-
test_remove_port_no_option
()¶
-
test_remove_port_required_options
()¶
-
-
class
openstackclient.tests.network.v2.test_router.
TestRemoveSubnetFromRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
Remove subnet from Router
-
setUp
()¶
-
test_remove_subnet_no_option
()¶
-
test_remove_subnet_required_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_no_route
()¶
-
test_set_nothing
()¶
-
test_set_route
()¶
-
test_set_route_clear_routes
()¶
-
test_set_route_no_route
()¶
-
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', 'availability_zone_hints', 'availability_zones', 'distributed', 'external_gateway_info', 'ha', 'id', 'name', 'project_id', 'routes', 'status')¶
-
data
= ('UP', '', '', False, '{}', False, 'router-id-14e7d34cb61945acad5f32807b91c106', 'router-name-73ee3288ca234aa9a659bb411d0aa225', 'project-id-dc1d0e5050e44c83ae53122fd35e0171', '', 'ACTIVE')¶
-
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.
TestCreateSecurityGroupCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute
-
columns
= ('description', 'id', 'name', 'project_id', 'rules')¶
-
data
= ('security-group-description-02f8b262a57445b98b842a81ce716a12', 'security-group-id-81f4b44febdb433d98d8e11b9e23c150', 'security-group-name-f50ac561f93a4770b6cdd7eba940b4a6', 'project-id-40ec8da5765c4816a81e9877e35f7260', '')¶
-
setUp
()¶
-
test_create_all_options
()¶
-
test_create_min_options
()¶
-
test_create_network_options
()¶
-
test_create_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group.
TestCreateSecurityGroupNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork
-
columns
= ('description', 'id', 'name', 'project_id', 'rules')¶
-
data
= ('security-group-description-1e9dcccbeac34505b193023435f5853c', 'security-group-id-eb925800498c4d159c1ec5f7eb757e9d', 'security-group-name-7d2cae4dc14b4c3da8fcd92c5a734838', 'project-id-e091561d87b841e8938569f8efeeabcf', '')¶
-
setUp
()¶
-
test_create_all_options
()¶
-
test_create_min_options
()¶
-
test_create_no_options
()¶
-
-
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
-
columns
= ('ID', 'Name', 'Description')¶
-
columns_all_projects
= ('ID', 'Name', 'Description', 'Project')¶
-
data
= [('security-group-id-f85e0cb3a372404c8048bd64bf05589a', 'security-group-name-eb86d5299ad343d8890e18a833b0a2fd', 'security-group-description-0e084ec1087545c0988772dfcb65d457'), ('security-group-id-0218bf1966f54665b2790af7f8d58d75', 'security-group-name-59d98622bb174fca96eca62810383a95', 'security-group-description-b2137bdb792744cb993a67d48c4a5ab4'), ('security-group-id-633a470eb9d84f878d8f18499a3fd2f1', 'security-group-name-7d8ce9084da9477b9db4271bbda169dd', 'security-group-description-0921334f437d44649915cbefff9a409f')]¶
-
data_all_projects
= [('security-group-id-f85e0cb3a372404c8048bd64bf05589a', 'security-group-name-eb86d5299ad343d8890e18a833b0a2fd', 'security-group-description-0e084ec1087545c0988772dfcb65d457', 'project-id-0211a0ba5397443f807d7aaf42f25c05'), ('security-group-id-0218bf1966f54665b2790af7f8d58d75', 'security-group-name-59d98622bb174fca96eca62810383a95', 'security-group-description-b2137bdb792744cb993a67d48c4a5ab4', 'project-id-a9abebada9d64fd2a23ea67b4e578328'), ('security-group-id-633a470eb9d84f878d8f18499a3fd2f1', 'security-group-name-7d8ce9084da9477b9db4271bbda169dd', 'security-group-description-0921334f437d44649915cbefff9a409f', 'project-id-f1c17f726af14e5f84af02512eeb5d15')]¶
-
grp
= <FakeResource description=security-group-description-0921334f437d44649915cbefff9a409f, id=security-group-id-633a470eb9d84f878d8f18499a3fd2f1, name=security-group-name-7d8ce9084da9477b9db4271bbda169dd, rules=[], tenant_id=project-id-f1c17f726af14e5f84af02512eeb5d15>¶
-
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
-
columns
= ('ID', 'Name', 'Description', 'Project')¶
-
data
= [('security-group-id-d3034aa7a6aa46ed8c201f0bc112e0c1', 'security-group-name-b10eedc3c8424cf6880a0af41b0f72c5', 'security-group-description-295cf27b6bc741aea8910ced624cc71c', 'project-id-c86421541f4b4d96bed16f39884bdba1'), ('security-group-id-49a162eede464052b77b68688b003e05', 'security-group-name-1309efe695bb4bb792aa2fa217b1728c', 'security-group-description-1fed1af8ae674f2d8b85441a496121c8', 'project-id-fe4764339ed345a6a15a8dcc5bafea5d'), ('security-group-id-5ca53c9c70784afe9d52f4d36d812049', 'security-group-name-4d60040eaa0e467d945d370b77fd7b6e', 'security-group-description-a33492f82ccd44f9a9a58d691d7ef2da', 'project-id-2173548fe4ed4bba94ac87324d91cf28')]¶
-
grp
= <FakeResource description=security-group-description-a33492f82ccd44f9a9a58d691d7ef2da, id=security-group-id-5ca53c9c70784afe9d52f4d36d812049, name=security-group-name-4d60040eaa0e467d945d370b77fd7b6e, project_id=project-id-2173548fe4ed4bba94ac87324d91cf28, security_group_rules=[], tenant_id=project-id-2173548fe4ed4bba94ac87324d91cf28>¶
-
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
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group.
TestSetSecurityGroupCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute
-
setUp
()¶
-
test_set_all_options
()¶
-
test_set_no_options
()¶
-
test_set_no_updates
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group.
TestSetSecurityGroupNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork
-
setUp
()¶
-
test_set_all_options
()¶
-
test_set_no_options
()¶
-
test_set_no_updates
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group.
TestShowSecurityGroupCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupCompute
-
columns
= ('description', 'id', 'name', 'project_id', 'rules')¶
-
data
= ('security-group-description-98a674f2f1924b91861bc4e120707ea7', 'security-group-id-3063bd8cdc504477868688dc31d99bba', 'security-group-name-16ba01f96cfa4042840e55403948542a', 'project-id-f431b768576b4257a7320570ea02539d', u"id='security-group-rule-id-6ad44a29a1624d0c978aa44b9dfba9d0', ip_protocol='tcp', ip_range='0.0.0.0/0', port_range='0:0'")¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group.
TestShowSecurityGroupNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group.TestSecurityGroupNetwork
-
columns
= ('description', 'id', 'name', 'project_id', 'rules')¶
-
data
= ('security-group-description-8663f054243247cf9fc7d6b294c71845', 'security-group-id-7eefdb207bde471e9cadd664e6e3f918', 'security-group-name-63442a6d287c4d7893943c4c5f684dfe', 'project-id-f91aafd87a664f8286a4de2164235483', u"direction='ingress', ethertype='IPv4', id='security-group-rule-id-7a092ce9e9a24b45b8160c19d0fbd518', protocol='tcp', remote_ip_prefix='0.0.0.0/0'")¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_security_group_rule module¶
-
class
openstackclient.tests.network.v2.test_security_group_rule.
TestCreateSecurityGroupRuleCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute
-
setUp
()¶
-
test_create_all_protocol_options
()¶
-
test_create_all_source_options
()¶
-
test_create_bad_protocol
()¶
-
test_create_default_rule
()¶
-
test_create_network_options
()¶
-
test_create_no_options
()¶
-
test_create_proto_option
()¶
-
test_create_source_group
()¶
-
test_create_source_ip
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group_rule.
TestCreateSecurityGroupRuleNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork
-
expected_columns
= ('direction', 'ethertype', 'id', 'port_range_max', 'port_range_min', 'project_id', 'protocol', 'remote_group_id', 'remote_ip_prefix', 'security_group_id')¶
-
expected_data
= None¶
-
setUp
()¶
-
test_create_all_port_range_options
()¶
-
test_create_all_protocol_options
()¶
-
test_create_all_source_options
()¶
-
test_create_bad_ethertype
()¶
-
test_create_default_rule
()¶
-
test_create_icmp_code
()¶
-
test_create_icmp_type
()¶
-
test_create_icmpv6_type
()¶
-
test_create_ipv6_icmp_type_code
()¶
-
test_create_network_options
()¶
-
test_create_no_options
()¶
-
test_create_proto_option
()¶
-
test_create_source_group
()¶
-
test_create_source_ip
()¶
-
test_create_tcp_with_icmp_type
()¶
-
-
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.
TestListSecurityGroupRuleCompute
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleCompute
-
expected_columns_no_group
= ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group', 'Security Group')¶
-
expected_columns_with_group
= ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group')¶
-
expected_data_no_group
= [('security-group-rule-id-b52d4a473f194cdd85699e65dd0c00f3', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-af352e0df41b4493b73da80181a3d4f7', 'security-group-id-a6e7dc7c4e6a4d68b671188898de513d'), ('security-group-rule-id-87e280491da7470997bd86866fbbdf5f', 'icmp', '10.0.2.0/24', '', 'security-group-name-af352e0df41b4493b73da80181a3d4f7', 'security-group-id-21213be75fe043dea4479cc5bc707ba5')]¶
-
expected_data_with_group
= [('security-group-rule-id-b52d4a473f194cdd85699e65dd0c00f3', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-af352e0df41b4493b73da80181a3d4f7'), ('security-group-rule-id-87e280491da7470997bd86866fbbdf5f', 'icmp', '10.0.2.0/24', '', 'security-group-name-af352e0df41b4493b73da80181a3d4f7')]¶
-
expected_rule_no_group
= ('security-group-rule-id-87e280491da7470997bd86866fbbdf5f', 'icmp', '10.0.2.0/24', '', 'security-group-name-af352e0df41b4493b73da80181a3d4f7', 'security-group-id-21213be75fe043dea4479cc5bc707ba5')¶
-
expected_rule_with_group
= ('security-group-rule-id-87e280491da7470997bd86866fbbdf5f', 'icmp', '10.0.2.0/24', '', 'security-group-name-af352e0df41b4493b73da80181a3d4f7')¶
-
rule
= {'port_range': '', 'ip_protocol': 'icmp', 'remote_security_group': 'security-group-name-af352e0df41b4493b73da80181a3d4f7', 'parent_group_id': 'security-group-id-21213be75fe043dea4479cc5bc707ba5', 'id': 'security-group-rule-id-87e280491da7470997bd86866fbbdf5f', 'ip_range': '10.0.2.0/24'}¶
-
setUp
()¶
-
test_list_all_projects
()¶
-
test_list_default
()¶
-
test_list_with_group
()¶
-
test_list_with_ignored_options
()¶
-
-
class
openstackclient.tests.network.v2.test_security_group_rule.
TestListSecurityGroupRuleNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_security_group_rule.TestSecurityGroupRuleNetwork
-
expected_columns_no_group
= ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Remote Security Group', 'Security Group')¶
-
expected_columns_with_group_and_long
= ('ID', 'IP Protocol', 'IP Range', 'Port Range', 'Direction', 'Ethertype', 'Remote Security Group')¶
-
expected_data_no_group
= [('security-group-rule-id-d76482638faa4afaa08ad34689791c2f', 'tcp', '0.0.0.0/0', '80:80', None, 'security-group-id-cf25831f8e0c47da9de57a25725c62da'), ('security-group-rule-id-14271c5283a2418eba218ea3e9a029ad', 'icmp', '10.0.2.0/24', '', None, 'security-group-id-cf25831f8e0c47da9de57a25725c62da')]¶
-
expected_data_with_group_and_long
= [('security-group-rule-id-d76482638faa4afaa08ad34689791c2f', 'tcp', '0.0.0.0/0', '80:80', 'ingress', 'IPv4', None), ('security-group-rule-id-14271c5283a2418eba218ea3e9a029ad', 'icmp', '10.0.2.0/24', '', 'ingress', 'IPv4', None)]¶
-
setUp
()¶
-
test_list_default
()¶
-
test_list_with_group_and_long
()¶
-
test_list_with_ignored_options
()¶
-
-
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-891796dbee014d0bb2696868a3bcec80', 'tcp', '0.0.0.0/0', 'security-group-id-a8fcda59a72748a0b17ed64d9debcce7', '0:0', '')¶
-
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-b6800a32af734c929bc5963a5826de79', None, None, 'project-id-f4f948c288c24632b7f49aad12b6fe99', 'tcp', None, '0.0.0.0/0', 'security-group-id-4884e5aa1dcd4e25be690c9684a4d2d6')¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
openstackclient.tests.network.v2.test_subnet module¶
-
class
openstackclient.tests.network.v2.test_subnet.
TestCreateSubnet
(*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-c7e581f3af1a48b18b773d79abb517d0', 4, 'None', 'None', 'subnet-name-eea1f15d9c5143c28b7a21f59427fe4b', 'network-id-31df0e7a914a48e480537f835123206e', '8-9-64', 'None')¶
-
data_ipv6
= ('fe80::a00a:0:c0de:0:100-fe80::a00a:0:c0de:0:f000,fe80::a00a:0:c0de:1:100-fe80::a00a:0:c0de:1:f000', 'fe80:0:0:a00a::/64', 'fe80:27ff:a00a:f00f::ffff, fe80:37ff:a00a:f00f::ffff', True, 'fe80::a00a:0:c0de:0:1', u"destination='fe80:27ff:a00a:f00f::/64', gateway='fe80:27ff:a00a:f00f::1'\ndestination='fe80:37ff:a00a:f00f::/64', gateway='fe80:37ff:a00a:f00f::1'", 'subnet-id-ecedf3656f4247e6963daa9f9d526279', 6, 'slaac', 'slaac', 'subnet-name-9884457b3a2f497896b5538f1a90481c', 'network-id-01c954fa6fa3448abe5b0c2f1d266a80', '8-9-64', 'None')¶
-
data_subnet_pool
= ('', '10.10.10.0/24', '8.8.4.4, 8.8.8.8', True, '10.10.10.1', u"destination='10.20.20.0/24', gateway='10.20.20.1'\ndestination='10.30.30.0/24', gateway='10.30.30.1'", 'subnet-id-c46d10ad8c34441eb6bc53bb07cceac0', 4, 'None', 'None', 'subnet-name-479dd908daee460f98bcff2d763c7f3f', 'network-id-ff35e3bdf71e403ca33a7aa6695e18c3', '8-9-64', 'subnet-pool-id-dbad50f68e104eefb0260a96f23c8fa0')¶
-
setUp
()¶
-
test_create_default_options
()¶
-
test_create_from_subnet_pool_options
()¶
-
test_create_no_options
()¶
-
test_create_options_subnet_range_ipv6
()¶
-
-
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-8ff3fd69d8b04af085316ff13a974da9', 'subnet-name-b2442f8363a74d6a86d60ea51b157849', 'network-id-dde3776095dc4c4a8312db3aeac4f284', '10.10.10.0/24'), ('subnet-id-82a2f3407b8849fba113389417af6270', 'subnet-name-dd6aecb72d7b4086a26688e09227dc66', 'network-id-51e1f84ea97641269aa21df95bbfe16b', '10.10.10.0/24'), ('subnet-id-7eede85cc977471f92259b41964ce920', 'subnet-name-66ef2bdd481842918a6dcd346e66ea02', 'network-id-eca3b0415ffb4400b82001fe6c32c580', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-8ff3fd69d8b04af085316ff13a974da9', 'subnet-name-b2442f8363a74d6a86d60ea51b157849', 'network-id-dde3776095dc4c4a8312db3aeac4f284', '10.10.10.0/24', 'project-id-6c3ad24a9d20409a964f8f3f74965956', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-82a2f3407b8849fba113389417af6270', 'subnet-name-dd6aecb72d7b4086a26688e09227dc66', 'network-id-51e1f84ea97641269aa21df95bbfe16b', '10.10.10.0/24', 'project-id-b260e7855ce44dfa9bda530ed4a869c5', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-7eede85cc977471f92259b41964ce920', 'subnet-name-66ef2bdd481842918a6dcd346e66ea02', 'network-id-eca3b0415ffb4400b82001fe6c32c580', '10.10.10.0/24', 'project-id-49cbe3adea3844f08736963d483c4240', 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-7eede85cc977471f92259b41964ce920, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-66ef2bdd481842918a6dcd346e66ea02, network_id=network-id-eca3b0415ffb4400b82001fe6c32c580, project_id=project-id-49cbe3adea3844f08736963d483c4240, subnetpool_id=None, tenant_id=project-id-49cbe3adea3844f08736963d483c4240>¶
-
test_subnet_list_ip_version
()¶
-
test_subnet_list_long
()¶
-
test_subnet_list_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_subnet.
TestSetSubnet
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_subnet.TestSubnet
-
setUp
()¶
-
test_append_options
()¶
-
test_set_nothing
()¶
-
test_set_that
()¶
-
test_set_this
()¶
-
-
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-444d389bb8d34137b72c1b1d4987fec0', 4, 'None', 'None', 'subnet-name-0f5b42663d5242919aa30f844f380b4c', 'network-id-1a4b607942fd4682b08370ce9d871594', 'project-id-53302c64e22a486ea157102bb249752b', '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.
TestCreateSubnetPool
(*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-cab52f58c2f742738bd4b09b246b84ab', '8', None, 'subnet-pool-id-7fd6fe1d20a34d038cf92fbb1fa6c227', '4', False, '32', '8', 'subnet-pool-name-c25c956cf13a4c75a4eef460907cbb52', '10.0.0.0/24, 10.1.0.0/24', 'project-id-586c612b1ca042d9b533d06eee0a9e57', False)¶
-
setUp
()¶
-
test_create_address_scope_option
()¶
-
test_create_default_options
()¶
-
test_create_len_negative
()¶
-
test_create_no_options
()¶
-
test_create_no_pool_prefix
()¶ Make sure –pool-prefix is a required argument
-
test_create_prefixlen_options
()¶
-
test_create_project_domain
()¶
-
-
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', 'Default Subnet Pool', 'Shared')¶
-
data
= [('subnet-pool-id-d3493ff8d7924a30866c30e929aaff55', 'subnet-pool-name-f4717d5d8024464e976a9ef340854aa6', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-e92d736035db45f1bfe74e6ab6680f6e', 'subnet-pool-name-8f26912a0e2c458db04a9ca1f3a379c2', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-88094d59f0354c1ca4e84b5fd5549283', 'subnet-pool-name-128f918ca5ab49b6bf4283e0f10b8def', '10.0.0.0/24, 10.1.0.0/24')]¶
-
data_long
= [('subnet-pool-id-d3493ff8d7924a30866c30e929aaff55', 'subnet-pool-name-f4717d5d8024464e976a9ef340854aa6', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-fec4bbee813a4bfca120155e73f1ad4c', False, False), ('subnet-pool-id-e92d736035db45f1bfe74e6ab6680f6e', 'subnet-pool-name-8f26912a0e2c458db04a9ca1f3a379c2', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-601cfd5c92f7402bb90ed0a0d7601cac', False, False), ('subnet-pool-id-88094d59f0354c1ca4e84b5fd5549283', 'subnet-pool-name-128f918ca5ab49b6bf4283e0f10b8def', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-b5945aff177b4a9182d612f7ff6158e9', False, False)]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-b5945aff177b4a9182d612f7ff6158e9, default_prefixlen=8, default_quota=None, id=subnet-pool-id-88094d59f0354c1ca4e84b5fd5549283, ip_version=4, is_default=False, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-128f918ca5ab49b6bf4283e0f10b8def, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-afb84f6463ca4177a85adcf176e1c97f, shared=False, tenant_id=project-id-afb84f6463ca4177a85adcf176e1c97f>¶
-
setUp
()¶
-
test_subnet_pool_list_long
()¶
-
test_subnet_pool_list_no_option
()¶
-
-
class
openstackclient.tests.network.v2.test_subnet_pool.
TestSetSubnetPool
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool
-
setUp
()¶
-
test_set_address_scope
()¶
-
test_set_default
()¶
-
test_set_len_negative
()¶
-
test_set_no_address_scope
()¶
-
test_set_no_address_scope_conflict
()¶
-
test_set_no_default
()¶
-
test_set_no_default_conflict
()¶
-
test_set_nothing
()¶
-
test_set_that
()¶
-
test_set_this
()¶
-
-
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-0ab54bbe206f41008ddfe4b746154aec', '8', None, 'subnet-pool-id-b2e7d5c6b074446f835da54637802b8e', '4', False, '32', '8', 'subnet-pool-name-9e50103d91634f4a84a10ee156855ee1', '10.0.0.0/24, 10.1.0.0/24', 'project-id-3d55c1b59c2b4e4cb751d34ae6e04524', 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
()¶
-