Merge "Show neutron tags in OSC network show"
This commit is contained in:
		@@ -39,6 +39,7 @@ _formatters = {
 | 
			
		||||
    'is_router_external': _format_router_external,
 | 
			
		||||
    'availability_zones': utils.format_list,
 | 
			
		||||
    'availability_zone_hints': utils.format_list,
 | 
			
		||||
    'tags': utils.format_list,
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -55,6 +56,7 @@ def _get_columns_network(item):
 | 
			
		||||
        'ipv4_address_scope_id': 'ipv4_address_scope',
 | 
			
		||||
        'ipv6_address_scope_id': 'ipv6_address_scope',
 | 
			
		||||
        'tenant_id': 'project_id',
 | 
			
		||||
        'tags': 'tags',
 | 
			
		||||
    }
 | 
			
		||||
    return sdk_utils.get_osc_show_columns_for_sdk_resource(item, column_map)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -346,6 +346,7 @@ class FakeNetwork(object):
 | 
			
		||||
            'availability_zone_hints': [],
 | 
			
		||||
            'is_default': False,
 | 
			
		||||
            'port_security_enabled': True,
 | 
			
		||||
            'tags': ['test'],
 | 
			
		||||
            'qos_policy_id': 'qos-policy-id-' + uuid.uuid4().hex,
 | 
			
		||||
            'ipv4_address_scope': 'ipv4' + uuid.uuid4().hex,
 | 
			
		||||
            'ipv6_address_scope': 'ipv6' + uuid.uuid4().hex,
 | 
			
		||||
@@ -365,6 +366,7 @@ class FakeNetwork(object):
 | 
			
		||||
            network_attrs['port_security_enabled']
 | 
			
		||||
        network.subnet_ids = network_attrs['subnets']
 | 
			
		||||
        network.is_shared = network_attrs['shared']
 | 
			
		||||
        network.is_tags = network_attrs['tags']
 | 
			
		||||
        network.provider_network_type = \
 | 
			
		||||
            network_attrs['provider:network_type']
 | 
			
		||||
        network.provider_physical_network = \
 | 
			
		||||
 
 | 
			
		||||
@@ -75,6 +75,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
 | 
			
		||||
        'shared',
 | 
			
		||||
        'status',
 | 
			
		||||
        'subnets',
 | 
			
		||||
        'tags',
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    data = (
 | 
			
		||||
@@ -97,6 +98,7 @@ class TestCreateNetworkIdentityV3(TestNetwork):
 | 
			
		||||
        _network.shared,
 | 
			
		||||
        _network.status,
 | 
			
		||||
        utils.format_list(_network.subnets),
 | 
			
		||||
        utils.format_list(_network.tags),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
@@ -255,6 +257,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
 | 
			
		||||
        'shared',
 | 
			
		||||
        'status',
 | 
			
		||||
        'subnets',
 | 
			
		||||
        'tags',
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    data = (
 | 
			
		||||
@@ -277,6 +280,7 @@ class TestCreateNetworkIdentityV2(TestNetwork):
 | 
			
		||||
        _network.shared,
 | 
			
		||||
        _network.status,
 | 
			
		||||
        utils.format_list(_network.subnets),
 | 
			
		||||
        utils.format_list(_network.tags),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
@@ -929,6 +933,7 @@ class TestShowNetwork(TestNetwork):
 | 
			
		||||
        'shared',
 | 
			
		||||
        'status',
 | 
			
		||||
        'subnets',
 | 
			
		||||
        'tags',
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    data = (
 | 
			
		||||
@@ -951,6 +956,7 @@ class TestShowNetwork(TestNetwork):
 | 
			
		||||
        _network.shared,
 | 
			
		||||
        _network.status,
 | 
			
		||||
        utils.format_list(_network.subnets),
 | 
			
		||||
        utils.format_list(_network.tags),
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    def setUp(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user