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.
FakeExtension
¶ Bases:
object
Fake one or more extension.
-
static
create_one_extension
(attrs=None)¶ Create a fake extension.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object with name, namespace, 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
get_security_groups
(security_groups=None, count=2)¶ Get an iterable MagicMock object with a list of faked security groups.
If security groups list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: - security groups (List) – A list of FakeResource objects faking security groups
- count (int) – The number of security groups to fake
Returns: An iterable Mock object with side_effect set to a list of faked 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
get_security_group_rules
(security_group_rules=None, count=2)¶ Get an iterable MagicMock object with a list of faked security group rules.
If security group rules list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: - security group rules (List) – A list of FakeResource objects faking security group rules
- count (int) – The number of security group rules to fake
Returns: An iterable Mock object with side_effect set to a list of faked 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
get_subnets
(subnets=None, count=2)¶ Get an iterable MagicMock object with a list of faked subnets.
If subnets list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: - subnets (List) – A list of FakeResource objects faking subnets
- count (int) – The number of subnets to fake
Returns: An iterable Mock object with side_effect set to a list of faked 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
get_subnet_pools
(subnet_pools=None, count=2)¶ Get an iterable MagicMock object with a list of faked subnet pools.
If subnet_pools list is provided, then initialize the Mock object with the list. Otherwise create one.
Parameters: - subnet pools (List) – A list of FakeResource objects faking subnet pools
- count (int) – The number of subnet pools to fake
Returns: An iterable Mock object with side_effect set to a list of faked subnet pools
-
static
-
class
openstackclient.tests.network.v2.fakes.
TestNetworkV2
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
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-c6516737eb444670a3858cb831b984ad', 4, 'address-scope-name-ad836d6bbf3e4af78c3529f27b7307db', '8-9-64', False)¶
-
new_address_scope
= <FakeResource id=address-scope-id-c6516737eb444670a3858cb831b984ad, ip_version=4, name=address-scope-name-ad836d6bbf3e4af78c3529f27b7307db, 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-2020988dc7f44127ab43d3c21a6c37d5, ip_version=4, name=address-scope-name-e3a450980a1e468794365a37cfcc20a4, project_id=project-id-114fb00411c34ee6bd320b009c6853b4, shared=False, tenant_id=project-id-114fb00411c34ee6bd320b009c6853b4>, <FakeResource id=address-scope-id-9cddd405ddfa42eab05b4c22eed5b644, ip_version=4, name=address-scope-name-92e87d6a7abd4b38ab004a8ae5c45c1d, project_id=project-id-6ea6a616b29c499d9400733a1cc6ae46, shared=False, tenant_id=project-id-6ea6a616b29c499d9400733a1cc6ae46>, <FakeResource id=address-scope-id-23fc4817e91845a79763c241547fdb25, ip_version=4, name=address-scope-name-f8f6a44db31b43708b1c53efecb37968, project_id=project-id-27481ec3ccde465583da415224b3bfae, shared=False, tenant_id=project-id-27481ec3ccde465583da415224b3bfae>]¶
-
columns
= ('ID', 'Name', 'IP Version', 'Shared', 'Project')¶
-
data
= [('address-scope-id-2020988dc7f44127ab43d3c21a6c37d5', 'address-scope-name-e3a450980a1e468794365a37cfcc20a4', 4, False, 'project-id-114fb00411c34ee6bd320b009c6853b4'), ('address-scope-id-9cddd405ddfa42eab05b4c22eed5b644', 'address-scope-name-92e87d6a7abd4b38ab004a8ae5c45c1d', 4, False, 'project-id-6ea6a616b29c499d9400733a1cc6ae46'), ('address-scope-id-23fc4817e91845a79763c241547fdb25', 'address-scope-name-f8f6a44db31b43708b1c53efecb37968', 4, False, 'project-id-27481ec3ccde465583da415224b3bfae')]¶
-
scope
= <FakeResource id=address-scope-id-23fc4817e91845a79763c241547fdb25, ip_version=4, name=address-scope-name-f8f6a44db31b43708b1c53efecb37968, project_id=project-id-27481ec3ccde465583da415224b3bfae, shared=False, tenant_id=project-id-27481ec3ccde465583da415224b3bfae>¶
-
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-b85dc231375f4fa488911fd707e2febb', 4, 'address-scope-name-99ddbdc62eef442eb862cf3884136aac', 'project-id-e79ca81b33fa49e7b87e5f65b5ae3f68', 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-f89c163a20494099b7aad6fe8d876986', 'server-id-363d8bbc768c473cabb13e137c6f4ce8', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-f89c163a20494099b7aad6fe8d876986, instance_id=server-id-363d8bbc768c473cabb13e137c6f4ce8, 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-3d45344d6edf4027a2716f4c94ec6491', 'floating-ip-id-a3b48d0aa8834ea0b2e69855ad54f7e2', 'port-id-4f7f3e08b54d4e6ea461a44c47c43094', 'project-id-978f69aebf324df78650b8f258ff33dc', 'router-id-7ecaf2d207b64aa0b59d13419fd7d85e', '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-3d45344d6edf4027a2716f4c94ec6491, id=floating-ip-id-a3b48d0aa8834ea0b2e69855ad54f7e2, port_id=port-id-4f7f3e08b54d4e6ea461a44c47c43094, project_id=project-id-978f69aebf324df78650b8f258ff33dc, router_id=router-id-7ecaf2d207b64aa0b59d13419fd7d85e, status=DOWN, tenant_id=project-id-978f69aebf324df78650b8f258ff33dc>¶
-
floating_network
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-3d45344d6edf4027a2716f4c94ec6491, is_default=False, is_router_external=True, name=network-name-5f3158567bf0473080f02f55494d8c86, project_id=project-id-f3eaf53a44d346499f4c9e7b3c951c6b, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-f3eaf53a44d346499f4c9e7b3c951c6b>¶
-
port
= <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-760fea2333a84b76a4d92c7ed85236e7, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-760fea2333a84b76a4d92c7ed85236e7, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-8e45eddebfae48fba56b0daa9cc26854, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-cba5d04fd56046a1a2d115c6e20b3731, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-4f7f3e08b54d4e6ea461a44c47c43094, mac_address=fa:16:3e:a9:4e:72, name=port-name-b59fd2de29a741f88a7a87d649320fce, network_id=network-id-f59d5ee116de4562ac0d5f00c36e8523, port_security_enabled=True, project_id=project-id-fd6c961f0a564443a446ece6cca4aa4a, security_groups=[], status=ACTIVE, tenant_id=project-id-fd6c961f0a564443a446ece6cca4aa4a>¶
-
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-f28539871f2a4a05ab7fb7b23c96a2cf, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-468df6568f2d45b1a3b4cc6c9c604515, network_id=network-id-519914a3c3e84800b96409930ec30760, project_id=project-id-a544d4d162b943a0ab750520fcf7550e, segment_id=None, subnetpool_id=None, tenant_id=project-id-a544d4d162b943a0ab750520fcf7550e>¶
-
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_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-f392b13807bd4241b446d804877ec6a7, instance_id=server-id-b0bd8da770da4586be30763362e8f7fa, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-0d9b756409104aa8b69ad5b7f34b01a6, instance_id=server-id-b180310afdd64a3f93a12e4f8d01f4f8, ip=1.0.9.0, pool=public>]¶
-
setUp
()¶
-
test_floating_ip_delete
()¶
-
test_multi_floating_ips_delete
()¶
-
test_multi_floating_ips_delete_with_exception
()¶
-
-
class
openstackclient.tests.network.v2.test_floating_ip.
TestDeleteFloatingIPNetwork
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_floating_ip.TestFloatingIPNetwork
-
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-30fa3db3bd0c4c89825837d5344663b6, id=floating-ip-id-8d86ce1cb17a4fe39fb218770a74ec74, port_id=port-id-aa9d8c8bbeaf45a395f5927a77349886, project_id=project-id-a177cee0f62a45efa2d425a7e91fbbae, router_id=router-id-0ed8deaccd464bfb8d48fd48191abaa9, status=DOWN, tenant_id=project-id-a177cee0f62a45efa2d425a7e91fbbae>, <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-461e12ce3ff14e31825a89bd5c790c43, id=floating-ip-id-9e7ffbd740b343a3a6dbc0719e967e16, port_id=port-id-73fd2d86dd3f4f7f9a3a3fc96ffae127, project_id=project-id-270942d2daf1420f8b65eeb70949417e, router_id=router-id-a03882e64cd04ed297441ff04f6e5ad4, status=DOWN, tenant_id=project-id-270942d2daf1420f8b65eeb70949417e>]¶
-
setUp
()¶
-
test_floating_ip_delete
()¶
-
test_multi_floating_ips_delete
()¶
-
test_multi_floating_ips_delete_with_exception
()¶
-
-
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-b5bb8dadfa65458386fc81dd84fd783a', '1.0.9.0', '2.0.9.0', 'server-id-b1d63d4960a841c396e7b215727597ef', 'public'), ('floating-ip-id-0fcf4781c1124b8f96ef56c88ec9442a', '1.0.9.0', '2.0.9.0', 'server-id-46e93dcf4e8d47338405a1a8f25b43b1', 'public'), ('floating-ip-id-135e3dca0c5440bcaece51502975b202', '1.0.9.0', '2.0.9.0', 'server-id-898ca786c7a7436d981f3e532c7c7879', 'public')]¶
-
floating_ips
= [<FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-b5bb8dadfa65458386fc81dd84fd783a, instance_id=server-id-b1d63d4960a841c396e7b215727597ef, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-0fcf4781c1124b8f96ef56c88ec9442a, instance_id=server-id-46e93dcf4e8d47338405a1a8f25b43b1, ip=1.0.9.0, pool=public>, <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-135e3dca0c5440bcaece51502975b202, instance_id=server-id-898ca786c7a7436d981f3e532c7c7879, ip=1.0.9.0, pool=public>]¶
-
ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-135e3dca0c5440bcaece51502975b202, instance_id=server-id-898ca786c7a7436d981f3e532c7c7879, 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-d3e656d0fe7e4864993e3f6dd637962c', '1.0.9.0', '2.0.9.0', 'port-id-6bcf4446e5694a8b804d7c7b751b40b2'), ('floating-ip-id-d7d7efdc95b04a48ba1e329ec21ca47b', '1.0.9.0', '2.0.9.0', 'port-id-e63706b321bf43f19e08c7e6fb768640'), ('floating-ip-id-006c84def19c46c0878b9a3c5bc3677e', '1.0.9.0', '2.0.9.0', 'port-id-1f6931decb0342bc874866b23ba30e82')]¶
-
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-2b3528bf8ff04bf394ec3ec15851ab26, id=floating-ip-id-d3e656d0fe7e4864993e3f6dd637962c, port_id=port-id-6bcf4446e5694a8b804d7c7b751b40b2, project_id=project-id-f847681d675049b59665735a90f10c89, router_id=router-id-b7a1a2363aa54451aeb7a73eab0f46f6, status=DOWN, tenant_id=project-id-f847681d675049b59665735a90f10c89>, <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-1fea094ddae444eea28c776fd7ebc5c1, id=floating-ip-id-d7d7efdc95b04a48ba1e329ec21ca47b, port_id=port-id-e63706b321bf43f19e08c7e6fb768640, project_id=project-id-86ca3a73fa3c4c75b5b031a4696e8134, router_id=router-id-4f19def140e246b186a654c1ba8319cf, status=DOWN, tenant_id=project-id-86ca3a73fa3c4c75b5b031a4696e8134>, <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-3cc47e4277784f7d97fdcb108d8fe43d, id=floating-ip-id-006c84def19c46c0878b9a3c5bc3677e, port_id=port-id-1f6931decb0342bc874866b23ba30e82, project_id=project-id-6b9d0e5206c844be89c0b7c2c83a86c5, router_id=router-id-4d190d91843b43a797c8e3ba030f653a, status=DOWN, tenant_id=project-id-6b9d0e5206c844be89c0b7c2c83a86c5>]¶
-
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-3cc47e4277784f7d97fdcb108d8fe43d, id=floating-ip-id-006c84def19c46c0878b9a3c5bc3677e, port_id=port-id-1f6931decb0342bc874866b23ba30e82, project_id=project-id-6b9d0e5206c844be89c0b7c2c83a86c5, router_id=router-id-4d190d91843b43a797c8e3ba030f653a, status=DOWN, tenant_id=project-id-6b9d0e5206c844be89c0b7c2c83a86c5>¶
-
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-aeff0b048a724750be4d8d18567e2f03', 'server-id-0a7199bdad6b4172b786ee218f402976', '1.0.9.0', 'public')¶
-
floating_ip
= <FakeResource fixed_ip=2.0.9.0, id=floating-ip-id-aeff0b048a724750be4d8d18567e2f03, instance_id=server-id-0a7199bdad6b4172b786ee218f402976, 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-2b0fe5e1fcf9496f9941d041ea2d400a', 'floating-ip-id-9464ada889124a8682ab864fc5ae4d94', 'port-id-03b80da95b2341d39b8b1916aeed6e0e', 'project-id-49b36f975cae40a0b9f5042412b4a430', 'router-id-1ee56989bcd549a78a2f4ee67d50e209', '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-2b0fe5e1fcf9496f9941d041ea2d400a, id=floating-ip-id-9464ada889124a8682ab864fc5ae4d94, port_id=port-id-03b80da95b2341d39b8b1916aeed6e0e, project_id=project-id-49b36f975cae40a0b9f5042412b4a430, router_id=router-id-1ee56989bcd549a78a2f4ee67d50e209, status=DOWN, tenant_id=project-id-49b36f975cae40a0b9f5042412b4a430>¶
-
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-82fbf18afead4ca39356df633b711b40', 'network-name-e6f2191527f64317a47e033f7cf1fc18', 254, 6), ('network-id-293a86899ae444fea033469814d4108b', 'network-name-1c61b893314147cd9c43fa99b56d3102', 254, 6), ('network-id-ef961dccee9c480fb81b2633d64e5fb7', 'network-name-fbad999f7de04a5da2e0ed1d066c3304', 254, 6)]¶
-
net
= <FakeResource network_id=network-id-ef961dccee9c480fb81b2633d64e5fb7, network_name=network-name-fbad999f7de04a5da2e0ed1d066c3304, 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-d83088371f264f9f8fb00b856ebad8e9', 'network-name-57e64e32b259498e94deb93c3bc616a4', '', '', 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-75dc4efcedc5477aaea2a5f4b174a5d3', False, 'network-label-1609a97e99a74ab783485b92f98a3df8', None, False, '255.255.255.0', None, None, 'project-id-159936ee49b44fd986ae6b50bda24caa', 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-e9df3f4ffbab4635994da5d7a6d06e3f', False, 'network-name-3d13061e03df4f42b639b6c33f707ec9', '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-58cca7c726b34f0480d5c890888635a5', False, 'network-name-00a71429bee444e699b6d67f1e8f82b8', '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-fab3a68d28a54973842bb08bccc41273', 'network-name-a9156c784c4448088a392e1f0cbb1161', 'a, b'), ('network-id-79dda35e97b34fdabf8cacb6c032cc6b', 'network-name-a883ec86d0a44e1ba7e8efd22eea9930', 'a, b'), ('network-id-7b3c2eff2e3f465b8a99a8ba94bcaaf1', 'network-name-393b8fd8f01a4953b9812554b2847271', 'a, b')]¶
-
data_long
= [('network-id-fab3a68d28a54973842bb08bccc41273', 'network-name-a9156c784c4448088a392e1f0cbb1161', 'ACTIVE', 'project-id-0f982a40247a4d6ca583d4fcf4c4e31b', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-79dda35e97b34fdabf8cacb6c032cc6b', 'network-name-a883ec86d0a44e1ba7e8efd22eea9930', 'ACTIVE', 'project-id-6f1e100fdc954f0b958fcd2c353dcaf5', 'UP', False, 'a, b', 'vlan', 'External', ''), ('network-id-7b3c2eff2e3f465b8a99a8ba94bcaaf1', 'network-name-393b8fd8f01a4953b9812554b2847271', 'ACTIVE', 'project-id-d83380d8679e4efca1220d5035d4e60f', 'UP', False, 'a, b', 'vlan', 'External', '')]¶
-
net
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], id=network-id-7b3c2eff2e3f465b8a99a8ba94bcaaf1, is_default=False, is_router_external=True, name=network-name-393b8fd8f01a4953b9812554b2847271, project_id=project-id-d83380d8679e4efca1220d5035d4e60f, provider_network_type=vlan, router:external=True, shared=False, status=ACTIVE, subnets=['a', 'b'], tenant_id=project-id-d83380d8679e4efca1220d5035d4e60f>¶
-
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-8b0c0554409346a39222c5cad2ae4b07', 'network-label-33b82fc484f84bb8b98bfeec5435269a', '10.0.0.0/24'), ('network-id-69fc988d68b449b5a80320fe2ac5f70a', 'network-label-3eaf954533f147c78c1ee70de3496381', '10.0.0.0/24'), ('network-id-070b5159c65444238eeaed770e56c5c7', 'network-label-030b4c75d0f54a3bb668f267769b5e49', '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-070b5159c65444238eeaed770e56c5c7, injected=False, label=network-label-030b4c75d0f54a3bb668f267769b5e49, mtu=None, multi_host=False, netmask=255.255.255.0, netmask_v6=None, priority=None, project_id=project-id-3bbf67bafc3148c1a785ab97d37223fe, 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-5954ed06ee974404b69ceb7e0e494d38', False, 'network-name-5028c32eb48943fca89ff920f63dff91', 'project-id-ec304a2251694d13845b484a24425ece', '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-b4ed906f80c749a6b2af01b9992c623c', False, 'network-label-6a2801f1057640228bf5dcb7e0ef5bc2', None, False, '255.255.255.0', None, None, 'project-id-48aa6212c2a24f408a864dc3a38288ff', 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
= [('network-segment-id-48b323464d36453b86401aa05c7d9788', 'network-id-fbd4a7afd594457fbbe4a4f465ebc976', 'vlan', 1024), ('network-segment-id-5aac3b5e688b4db0820c7208f984aa51', 'network-id-5a565bc0d39c4b96a93a6cb764517fc7', 'vlan', 1024), ('network-segment-id-a06de502554d4b448eff64835da903c6', 'network-id-f7e6d3ec61354166b5a4bfc0a1741ce5', 'vlan', 1024)]¶
-
data_long
= [('network-segment-id-48b323464d36453b86401aa05c7d9788', 'network-id-fbd4a7afd594457fbbe4a4f465ebc976', 'vlan', 1024, 'physical-network-name-8c282bf7ec68449eb207cf87282ddae1'), ('network-segment-id-5aac3b5e688b4db0820c7208f984aa51', 'network-id-5a565bc0d39c4b96a93a6cb764517fc7', 'vlan', 1024, 'physical-network-name-c4c9342f74ac4c3aacfeb6cf4d459843'), ('network-segment-id-a06de502554d4b448eff64835da903c6', 'network-id-f7e6d3ec61354166b5a4bfc0a1741ce5', 'vlan', 1024, 'physical-network-name-a7c44f16f10445e197e812dda75326b8')]¶
-
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
= ('network-segment-id-de5ffc4bccd94a0ca3280ab1cb62ee7f', 'network-id-6541f5c2cb384bfe9f925bdb87dfcde6', 'vlan', 'physical-network-name-a7a3cd5f66dc4d17a263a322285e7fce', 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
()¶
-
test_create_invalid_json_binding_profile
()¶
-
test_create_invalid_key_value_binding_profile
()¶
-
test_create_json_binding_profile
()¶
-
-
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-578e1215302249ababb0d2d0dc062fd7', 'port-name-767d0c156fc34f1bb2344de3532dcc5e', 'fa:16:3e:a9:4e:72', ''), ('port-id-d82488735c1b40119ec1da430b1c1bc5', 'port-name-b42c097730a4449aaa559a7d8d93aff2', 'fa:16:3e:a9:4e:72', ''), ('port-id-b541cda9d98b4028813a255684793c3e', 'port-name-40bc0800d5f54c62b87c77b6b9344987', 'fa:16:3e:a9:4e:72', '')]¶
-
prt
= <FakeResource admin_state_up=True, allowed_address_pairs=[{}], binding:host_id=binding-host-id-62f00210e36c4f6e998dd1482daf5973, binding:profile={}, binding:vif_details={}, binding:vif_type=ovs, binding:vnic_type=normal, binding_host_id=binding-host-id-62f00210e36c4f6e998dd1482daf5973, binding_profile={}, binding_vif_details={}, binding_vif_type=ovs, binding_vnic_type=normal, device_id=device-id-fcb31f7398a34982b9143b9bc968ae6b, device_owner=compute:nova, dns_assignment=[{}], dns_name=dns-name-7b81dd25a7774d5ea3128b7e48c38e59, extra_dhcp_opts=[{}], fixed_ips=[{}], id=port-id-b541cda9d98b4028813a255684793c3e, mac_address=fa:16:3e:a9:4e:72, name=port-name-40bc0800d5f54c62b87c77b6b9344987, network_id=network-id-90a7cd644a834b7b9b6b33eb36f5a35e, port_security_enabled=True, project_id=project-id-3639d03217e8483d8ea01c918082303e, security_groups=[], status=ACTIVE, tenant_id=project-id-3639d03217e8483d8ea01c918082303e>¶
-
setUp
()¶
-
test_port_list_all_opt
()¶
-
test_port_list_device_owner_opt
()¶
-
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_invalid_json_binding_profile
()¶
-
test_set_invalid_key_value_binding_profile
()¶
-
test_set_mixed_binding_profile
()¶
-
test_set_nothing
()¶
-
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-b2bf250cd8a24f68b65b203eea886e2b', 'router-name-5d3aea0948f74a1db938b20a41a71464', 'project-id-cab85292a86d49f1b377e5f9004db844', '', 'ACTIVE')¶
-
new_router
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-b2bf250cd8a24f68b65b203eea886e2b, name=router-name-5d3aea0948f74a1db938b20a41a71464, project_id=project-id-cab85292a86d49f1b377e5f9004db844, routes=[], status=ACTIVE, tenant_id=project-id-cab85292a86d49f1b377e5f9004db844>¶
-
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_multi_routers_delete
()¶
-
test_multi_routers_delete_with_exception
()¶
-
test_router_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-32b89927ef3b47659616f2c0a62a8756', 'router-name-cc822233f4624a48bba3ab19c56497cb', 'ACTIVE', 'UP', False, False, 'project-id-d6e645241f594938978fc27ff454599d'), ('router-id-1badd13004a84adfa6f8855aea137999', 'router-name-5702e5149f494ace9856ca1a3e0c14b1', 'ACTIVE', 'UP', False, False, 'project-id-6f2ff96e43274ad1a627888b5838fbbd'), ('router-id-637f21cb1504454eb880fc12836d13b1', 'router-name-d92cf337a2064b778c18cb5f46780d3d', 'ACTIVE', 'UP', False, False, 'project-id-733d3d83e41d4becb792a9069be8205f')]¶
-
data_long
= [('router-id-32b89927ef3b47659616f2c0a62a8756', 'router-name-cc822233f4624a48bba3ab19c56497cb', 'ACTIVE', 'UP', False, False, 'project-id-d6e645241f594938978fc27ff454599d', '', '{}', ''), ('router-id-1badd13004a84adfa6f8855aea137999', 'router-name-5702e5149f494ace9856ca1a3e0c14b1', 'ACTIVE', 'UP', False, False, 'project-id-6f2ff96e43274ad1a627888b5838fbbd', '', '{}', ''), ('router-id-637f21cb1504454eb880fc12836d13b1', 'router-name-d92cf337a2064b778c18cb5f46780d3d', 'ACTIVE', 'UP', False, False, 'project-id-733d3d83e41d4becb792a9069be8205f', '', '{}', '')]¶
-
i
= 2¶
-
r
= <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-637f21cb1504454eb880fc12836d13b1, name=router-name-d92cf337a2064b778c18cb5f46780d3d, project_id=project-id-733d3d83e41d4becb792a9069be8205f, routes=[], status=ACTIVE, tenant_id=project-id-733d3d83e41d4becb792a9069be8205f>¶
-
routers
= [<FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-32b89927ef3b47659616f2c0a62a8756, name=router-name-cc822233f4624a48bba3ab19c56497cb, project_id=project-id-d6e645241f594938978fc27ff454599d, routes=[], status=ACTIVE, tenant_id=project-id-d6e645241f594938978fc27ff454599d>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-1badd13004a84adfa6f8855aea137999, name=router-name-5702e5149f494ace9856ca1a3e0c14b1, project_id=project-id-6f2ff96e43274ad1a627888b5838fbbd, routes=[], status=ACTIVE, tenant_id=project-id-6f2ff96e43274ad1a627888b5838fbbd>, <FakeResource admin_state_up=True, availability_zone_hints=[], availability_zones=[], distributed=False, external_gateway_info={}, ha=False, id=router-id-637f21cb1504454eb880fc12836d13b1, name=router-name-d92cf337a2064b778c18cb5f46780d3d, project_id=project-id-733d3d83e41d4becb792a9069be8205f, routes=[], status=ACTIVE, tenant_id=project-id-733d3d83e41d4becb792a9069be8205f>]¶
-
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-072d00463f314101ad17f1b0ba3b4d0c', 'router-name-859bcc973c154f549169484cbf1d54e6', 'project-id-7b92c5a2e71a4c99b52cd974837784ea', '', 'ACTIVE')¶
-
setUp
()¶
-
test_show_all_options
()¶
-
test_show_no_options
()¶
-
-
class
openstackclient.tests.network.v2.test_router.
TestUnsetRouter
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_router.TestRouter
-
setUp
()¶
-
test_unset_router_params
()¶
-
test_unset_router_wrong_routes
()¶
-
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-6da30c90294448e78610fbfec2807f85', 'security-group-id-a10aba22fac94e1d8d8bbbe2455845e6', 'security-group-name-e1bbac8efbbb4658b8fc4c733280276d', 'project-id-b138dde4c3a74bd38a5a5768eca24a08', '')¶
-
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-48e75fe6db9a4f23af7d53401d49b244', 'security-group-id-fdee4390c49c4645bba7113b27c03230', 'security-group-name-78f081f4fb904dea9a6814ede311428a', 'project-id-1a6be680bbf141c89b1140e20cacdfe6', '')¶
-
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_multi_security_groups_delete
()¶
-
test_multi_security_groups_delete_with_exception
()¶
-
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_multi_security_groups_delete
()¶
-
test_multi_security_groups_delete_with_exception
()¶
-
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-082b69104ad2485b88f1b187a9200334', 'security-group-name-8a556e8ee43d4d1982ff7492673b2b21', 'security-group-description-038970bef4dd418789c8e91c62a275b8'), ('security-group-id-723e710477024f62ac0685633f49acfb', 'security-group-name-85ae215a74054815b6dc20cd1b891ae3', 'security-group-description-e921f371848e42e4b6ef40e8a1d4b9ef'), ('security-group-id-a499de1b3c764e3896c6c4e1a2c586b7', 'security-group-name-cf059d8a104645acba2dbc455465ebc2', 'security-group-description-36b50d65fa734135b5286c900a2ff0c5')]¶
-
data_all_projects
= [('security-group-id-082b69104ad2485b88f1b187a9200334', 'security-group-name-8a556e8ee43d4d1982ff7492673b2b21', 'security-group-description-038970bef4dd418789c8e91c62a275b8', 'project-id-5b0908ef528c44eeba33837fb2c6866d'), ('security-group-id-723e710477024f62ac0685633f49acfb', 'security-group-name-85ae215a74054815b6dc20cd1b891ae3', 'security-group-description-e921f371848e42e4b6ef40e8a1d4b9ef', 'project-id-6c31e907875a4c50abe9934074f39df9'), ('security-group-id-a499de1b3c764e3896c6c4e1a2c586b7', 'security-group-name-cf059d8a104645acba2dbc455465ebc2', 'security-group-description-36b50d65fa734135b5286c900a2ff0c5', 'project-id-30e57cc8f1f04327ab47975a47370211')]¶
-
grp
= <FakeResource description=security-group-description-36b50d65fa734135b5286c900a2ff0c5, id=security-group-id-a499de1b3c764e3896c6c4e1a2c586b7, name=security-group-name-cf059d8a104645acba2dbc455465ebc2, rules=[], tenant_id=project-id-30e57cc8f1f04327ab47975a47370211>¶
-
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-4f41db473a8b4406bdc56748fda9f0d3', 'security-group-name-ff885e509f4140c1b88c5e5a9a613e2e', 'security-group-description-fb38a015326e4ceea2866696c1c68678', 'project-id-b058d7753e864bea9ef50958a0412d29'), ('security-group-id-5a57c9137b934c758108c61f6aad2cbb', 'security-group-name-e78a0590f2bb45cd807ad712312e1136', 'security-group-description-35574dc0e5e84c31b1583cf2db8007ca', 'project-id-c0f3659105fa4b88a10f29cc9f97c20d'), ('security-group-id-aae7955cdeb94ade821041b69aa57adb', 'security-group-name-0a894c3d668047678f30a513bf9f11cc', 'security-group-description-384d8b381d87435db489ee6f29c5108f', 'project-id-fc8f4913a8d04af88703677241400f46')]¶
-
grp
= <FakeResource description=security-group-description-384d8b381d87435db489ee6f29c5108f, id=security-group-id-aae7955cdeb94ade821041b69aa57adb, name=security-group-name-0a894c3d668047678f30a513bf9f11cc, project_id=project-id-fc8f4913a8d04af88703677241400f46, security_group_rules=[], tenant_id=project-id-fc8f4913a8d04af88703677241400f46>¶
-
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-0a068dd3e46a47b498b21d47eea4ce53', 'security-group-id-a2e9001c83dd4722b9284d86269ef28c', 'security-group-name-bb41e2fe5162407494cd1431c9bbd5db', 'project-id-d6c64d2ed12b4dd4b5035ff5ee325e06', u"id='security-group-rule-id-4a727fc9a46a42ce878686b602e80d49', 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-82c847c0bb684f1b839d63aab74519ae', 'security-group-id-41b55d94090e4f5184b456dd2e4c2c49', 'security-group-name-12c25aa2390b4388a2ecc14310e4994c', 'project-id-41e0ac2052b3428a909948ef072a252c', u"direction='ingress', ethertype='IPv4', id='security-group-rule-id-31de7291e8854fcea911d4f243bd0ce7', 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_multi_security_group_rules_delete
()¶
-
test_multi_security_group_rules_delete_with_exception
()¶
-
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_multi_security_group_rules_delete
()¶
-
test_multi_security_group_rules_delete_with_exception
()¶
-
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-92f473a700fa4d46b5afb8406d1a7f13', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24', 'security-group-id-54656e139519419a8e5566ef7b863de1'), ('security-group-rule-id-a87fa471ab324cf1a532027757d7f857', 'icmp', '10.0.2.0/24', '', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24', 'security-group-id-e03d55a29dd64565a403d61bfa69b823')]¶
-
expected_data_with_group
= [('security-group-rule-id-92f473a700fa4d46b5afb8406d1a7f13', 'tcp', '0.0.0.0/0', '80:80', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24'), ('security-group-rule-id-a87fa471ab324cf1a532027757d7f857', 'icmp', '10.0.2.0/24', '', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24')]¶
-
expected_rule_no_group
= ('security-group-rule-id-a87fa471ab324cf1a532027757d7f857', 'icmp', '10.0.2.0/24', '', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24', 'security-group-id-e03d55a29dd64565a403d61bfa69b823')¶
-
expected_rule_with_group
= ('security-group-rule-id-a87fa471ab324cf1a532027757d7f857', 'icmp', '10.0.2.0/24', '', 'security-group-name-03fd09e27c3a4f3f802fe55288950a24')¶
-
rule
= {'port_range': '', 'ip_protocol': 'icmp', 'remote_security_group': 'security-group-name-03fd09e27c3a4f3f802fe55288950a24', 'parent_group_id': 'security-group-id-e03d55a29dd64565a403d61bfa69b823', 'id': 'security-group-rule-id-a87fa471ab324cf1a532027757d7f857', '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-c83db771f000496c8bcc9bb10dc73aad', 'tcp', '0.0.0.0/0', '80:80', None, 'security-group-id-bd23f5d323b74c2a9beeb13069061db8'), ('security-group-rule-id-ba3702b9adb6473e8499dbbc299a3cd1', 'icmp', '10.0.2.0/24', '', None, 'security-group-id-bd23f5d323b74c2a9beeb13069061db8')]¶
-
expected_data_with_group_and_long
= [('security-group-rule-id-c83db771f000496c8bcc9bb10dc73aad', 'tcp', '0.0.0.0/0', '80:80', 'ingress', 'IPv4', None), ('security-group-rule-id-ba3702b9adb6473e8499dbbc299a3cd1', '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-152cdfbe452f477d95e64c9da7d43f12', 'tcp', '0.0.0.0/0', 'security-group-id-461e75a3b6b442d68407571196596a98', '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-be59d76c9ffe4e1bb45c150e0d103976', None, None, 'project-id-20a871f887eb4377812b3dced4f13dde', 'tcp', None, '0.0.0.0/0', 'security-group-id-1a501a106b514616b065e8f64a026deb')¶
-
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', 'segment_id', 'subnetpool_id')¶
-
data
= ('', '10.10.10.0/24', '', True, '10.10.10.1', '', 'subnet-id-e5f8333e5f9a4525b10666233912a46c', 4, None, None, 'subnet-name-cedb6377541346bc87869aed08a6cd6f', 'network-id-d8a8957f5a2442afa2c3a4436bbf13e2', '8-9-64', None, 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-aac506aa982b48c9901f1ee2f22dcf95', 6, 'slaac', 'slaac', 'subnet-name-40e5b085763d4e3391498923074c26ee', 'network-id-ccce3ecff3044cff90d15d76ce9106c8', '8-9-64', None, '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-8afcc71e4aab43bd907348594f425d9a', 4, None, None, 'subnet-name-afd64971ac6c4375b2ff62612eb0e5e0', 'network-id-9b066ded0bff4a17b6ef10a4a1bc138e', '8-9-64', None, 'subnet-pool-id-d0ec28e48ca441869ea6b0b98aaa9f30')¶
-
setUp
()¶
-
test_create_default_options
()¶
-
test_create_from_subnet_pool_options
()¶
-
test_create_no_beta_command_options
()¶
-
test_create_no_options
()¶
-
test_create_options_subnet_range_ipv6
()¶
-
test_create_with_network_segment
()¶
-
-
class
openstackclient.tests.network.v2.test_subnet.
TestDeleteSubnet
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_subnet.TestSubnet
-
setUp
()¶
-
test_multi_subnets_delete
()¶
-
test_multi_subnets_delete_with_exception
()¶
-
test_subnet_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-ca759c6e10e843bdacd9deb98b394530', 'subnet-name-08a6c9955c3a4c73b07849238db845af', 'network-id-a731242361874a7bae6ff9b97dbd448b', '10.10.10.0/24'), ('subnet-id-aaaa26df7fd3433c8a4cfe8dd3d40c86', 'subnet-name-f22fda48d9a44fc083491e975f039937', 'network-id-28a4999a18754d6f95fe67fead9d417a', '10.10.10.0/24'), ('subnet-id-2bf98ad335324e29b7f4b031c54228bf', 'subnet-name-ec060de209da43adbcaac338218711fa', 'network-id-458feb8a2e0a482c86ac3588e135e241', '10.10.10.0/24')]¶
-
data_long
= [('subnet-id-ca759c6e10e843bdacd9deb98b394530', 'subnet-name-08a6c9955c3a4c73b07849238db845af', 'network-id-a731242361874a7bae6ff9b97dbd448b', '10.10.10.0/24', 'project-id-230b94e85cc445a6b0b1044fd7d251ae', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-aaaa26df7fd3433c8a4cfe8dd3d40c86', 'subnet-name-f22fda48d9a44fc083491e975f039937', 'network-id-28a4999a18754d6f95fe67fead9d417a', '10.10.10.0/24', 'project-id-3b03022d6076461fb8b16e1f11e9a7dd', True, '', '', '', 4, '10.10.10.1'), ('subnet-id-2bf98ad335324e29b7f4b031c54228bf', 'subnet-name-ec060de209da43adbcaac338218711fa', 'network-id-458feb8a2e0a482c86ac3588e135e241', '10.10.10.0/24', 'project-id-8322a8e2c5a24e369373d388919dc913', 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-2bf98ad335324e29b7f4b031c54228bf, ip_version=4, ipv6_address_mode=None, ipv6_ra_mode=None, name=subnet-name-ec060de209da43adbcaac338218711fa, network_id=network-id-458feb8a2e0a482c86ac3588e135e241, project_id=project-id-8322a8e2c5a24e369373d388919dc913, segment_id=None, subnetpool_id=None, tenant_id=project-id-8322a8e2c5a24e369373d388919dc913>¶
-
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', 'segment_id', 'subnetpool_id')¶
-
data
= ('', '10.10.10.0/24', '', True, '10.10.10.1', '', 'subnet-id-9f2ae84fe43c4510bda645b13491758a', 4, None, None, 'subnet-name-3d87cab5233c497685d98d489b5e64e5', 'network-id-21a095300907437e8a36e5c10db3a3be', 'project-id-2f165f2a225b4009802c212bfb8ae316', None, 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
()¶
-
-
class
openstackclient.tests.network.v2.test_subnet.
TestUnsetSubnet
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_subnet.TestSubnet
-
setUp
()¶
-
test_unset_subnet_params
()¶
-
test_unset_subnet_wrong_allocation_pool
()¶
-
test_unset_subnet_wrong_dns_nameservers
()¶
-
test_unset_subnet_wrong_host_routes
()¶
-
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-e9561fc933184c0c94315a5ad312be6d', '8', None, 'subnet-pool-id-9e524f94c837495498e4bced800594b7', '4', False, '32', '8', 'subnet-pool-name-3488fdf249914be09439989d158f6b3e', '10.0.0.0/24, 10.1.0.0/24', 'project-id-e20dd04de59d4963b30f73e961c6f968', 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_multi_subnet_pools_delete
()¶
-
test_multi_subnet_pools_delete_with_exception
()¶
-
test_subnet_pool_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-6cc4559d51e54df9b4b5abfac590e5f4', 'subnet-pool-name-fc1c793d1c8240a2b0b2908177293a7f', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-05e42d401dde46b49d15a35d06ed93c0', 'subnet-pool-name-ac91905d4b6b4f7f8abb092501878397', '10.0.0.0/24, 10.1.0.0/24'), ('subnet-pool-id-add85e51c0c742278d0433d11094ac0d', 'subnet-pool-name-f9904e6f010c435e9cff9d831f35f23d', '10.0.0.0/24, 10.1.0.0/24')]¶
-
data_long
= [('subnet-pool-id-6cc4559d51e54df9b4b5abfac590e5f4', 'subnet-pool-name-fc1c793d1c8240a2b0b2908177293a7f', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-772540aceb5f48f6884cff869f53fbcc', False, False), ('subnet-pool-id-05e42d401dde46b49d15a35d06ed93c0', 'subnet-pool-name-ac91905d4b6b4f7f8abb092501878397', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-6f4526e92c7c43f5ae3895b9570f889f', False, False), ('subnet-pool-id-add85e51c0c742278d0433d11094ac0d', 'subnet-pool-name-f9904e6f010c435e9cff9d831f35f23d', '10.0.0.0/24, 10.1.0.0/24', '8', 'address-scope-id-6f93be8ff8ec495fb9bc16bc81c3efc2', False, False)]¶
-
pool
= <FakeResource address_scope_id=address-scope-id-6f93be8ff8ec495fb9bc16bc81c3efc2, default_prefixlen=8, default_quota=None, id=subnet-pool-id-add85e51c0c742278d0433d11094ac0d, ip_version=4, is_default=False, max_prefixlen=32, min_prefixlen=8, name=subnet-pool-name-f9904e6f010c435e9cff9d831f35f23d, prefixes=['10.0.0.0/24', '10.1.0.0/24'], project_id=project-id-d67082330af54d5ea33b806577d75b05, shared=False, tenant_id=project-id-d67082330af54d5ea33b806577d75b05>¶
-
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-11aec3bf63d843b0930c9fc94650c694', '8', None, 'subnet-pool-id-a60c7a8dc218421ab969bbfc9f2f1091', '4', False, '32', '8', 'subnet-pool-name-a230176e1a384b4aafc6a51e3de830d5', '10.0.0.0/24, 10.1.0.0/24', 'project-id-d722a104b82547dd976a48e34f8026bc', 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
()¶
-
-
class
openstackclient.tests.network.v2.test_subnet_pool.
TestUnsetSubnetPool
(*args, **kwargs)¶ Bases:
openstackclient.tests.network.v2.test_subnet_pool.TestSubnetPool
-
setUp
()¶
-
test_unset_subnet_pool
()¶
-
test_unset_subnet_pool_prefix_not_existent
()¶
-