Browse Source

Merge "Format location columns in network commands"

tags/4.0.0
Zuul 1 week ago
parent
commit
678167a6bf

+ 8
- 2
openstackclient/network/v2/address_scope.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -27,6 +28,11 @@ from openstackclient.network import sdk_utils
27 28
 LOG = logging.getLogger(__name__)
28 29
 
29 30
 
31
+_formatters = {
32
+    'location': format_columns.DictColumn,
33
+}
34
+
35
+
30 36
 def _get_columns(item):
31 37
     column_map = {
32 38
         'is_shared': 'shared',
@@ -100,7 +106,7 @@ class CreateAddressScope(command.ShowOne):
100 106
         attrs = _get_attrs(self.app.client_manager, parsed_args)
101 107
         obj = client.create_address_scope(**attrs)
102 108
         display_columns, columns = _get_columns(obj)
103
-        data = utils.get_item_properties(obj, columns, formatters={})
109
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
104 110
 
105 111
         return (display_columns, data)
106 112
 
@@ -289,6 +295,6 @@ class ShowAddressScope(command.ShowOne):
289 295
             parsed_args.address_scope,
290 296
             ignore_missing=False)
291 297
         display_columns, columns = _get_columns(obj)
292
-        data = utils.get_item_properties(obj, columns, formatters={})
298
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
293 299
 
294 300
         return (display_columns, data)

+ 2
- 0
openstackclient/network/v2/floating_ip.py View File

@@ -13,6 +13,7 @@
13 13
 
14 14
 """IP Floating action implementations"""
15 15
 
16
+from osc_lib.cli import format_columns
16 17
 from osc_lib.command import command
17 18
 from osc_lib import utils
18 19
 
@@ -24,6 +25,7 @@ from openstackclient.network.v2 import _tag
24 25
 
25 26
 
26 27
 _formatters = {
28
+    'location': format_columns.DictColumn,
27 29
     'port_details': utils.format_dict,
28 30
 }
29 31
 

+ 2
- 0
openstackclient/network/v2/ip_availability.py View File

@@ -21,7 +21,9 @@ from openstackclient.i18n import _
21 21
 from openstackclient.identity import common as identity_common
22 22
 from openstackclient.network import sdk_utils
23 23
 
24
+
24 25
 _formatters = {
26
+    'location': format_columns.DictColumn,
25 27
     'subnet_ip_availability': format_columns.ListDictColumn,
26 28
 }
27 29
 

+ 1
- 0
openstackclient/network/v2/network.py View File

@@ -40,6 +40,7 @@ _formatters = {
40 40
     'subnet_ids': format_columns.ListColumn,
41 41
     'admin_state_up': AdminStateColumn,
42 42
     'is_admin_state_up': AdminStateColumn,
43
+    'location': format_columns.DictColumn,
43 44
     'router:external': RouterExternalColumn,
44 45
     'is_router_external': RouterExternalColumn,
45 46
     'availability_zones': format_columns.ListColumn,

+ 1
- 0
openstackclient/network/v2/network_agent.py View File

@@ -43,6 +43,7 @@ _formatters = {
43 43
     'alive': AliveColumn,
44 44
     'admin_state_up': AdminStateColumn,
45 45
     'is_admin_state_up': AdminStateColumn,
46
+    'location': format_columns.DictColumn,
46 47
     'configurations': format_columns.DictColumn,
47 48
 }
48 49
 

+ 12
- 5
openstackclient/network/v2/network_auto_allocated_topology.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import utils
20 21
 
@@ -25,6 +26,11 @@ from openstackclient.network import sdk_utils
25 26
 LOG = logging.getLogger(__name__)
26 27
 
27 28
 
29
+_formatters = {
30
+    'location': format_columns.DictColumn,
31
+}
32
+
33
+
28 34
 def _get_columns(item):
29 35
     column_map = {
30 36
         'tenant_id': 'project_id',
@@ -93,16 +99,17 @@ class CreateAutoAllocatedTopology(command.ShowOne):
93 99
         obj = client.validate_auto_allocated_topology(parsed_args.project)
94 100
 
95 101
         columns = _format_check_resource_columns()
96
-        data = utils.get_item_properties(_format_check_resource(obj),
97
-                                         columns,
98
-                                         formatters={})
99
-
102
+        data = utils.get_item_properties(
103
+            _format_check_resource(obj),
104
+            columns,
105
+            formatters=_formatters,
106
+        )
100 107
         return (columns, data)
101 108
 
102 109
     def get_topology(self, client, parsed_args):
103 110
         obj = client.get_auto_allocated_topology(parsed_args.project)
104 111
         display_columns, columns = _get_columns(obj)
105
-        data = utils.get_item_properties(obj, columns, formatters={})
112
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
106 113
         return (display_columns, data)
107 114
 
108 115
     def take_action(self, parsed_args):

+ 8
- 2
openstackclient/network/v2/network_flavor.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -27,6 +28,11 @@ from openstackclient.network import sdk_utils
27 28
 LOG = logging.getLogger(__name__)
28 29
 
29 30
 
31
+_formatters = {
32
+    'location': format_columns.DictColumn,
33
+}
34
+
35
+
30 36
 def _get_columns(item):
31 37
     column_map = {
32 38
         'is_enabled': 'enabled',
@@ -136,7 +142,7 @@ class CreateNetworkFlavor(command.ShowOne):
136 142
         attrs = _get_attrs(self.app.client_manager, parsed_args)
137 143
         obj = client.create_flavor(**attrs)
138 144
         display_columns, columns = _get_columns(obj)
139
-        data = utils.get_item_properties(obj, columns, formatters={})
145
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
140 146
 
141 147
         return (display_columns, data)
142 148
 
@@ -300,5 +306,5 @@ class ShowNetworkFlavor(command.ShowOne):
300 306
         client = self.app.client_manager.network
301 307
         obj = client.find_flavor(parsed_args.flavor, ignore_missing=False)
302 308
         display_columns, columns = _get_columns(obj)
303
-        data = utils.get_item_properties(obj, columns)
309
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
304 310
         return display_columns, data

+ 8
- 2
openstackclient/network/v2/network_flavor_profile.py View File

@@ -13,6 +13,7 @@
13 13
 
14 14
 import logging
15 15
 
16
+from osc_lib.cli import format_columns
16 17
 from osc_lib.command import command
17 18
 from osc_lib import exceptions
18 19
 from osc_lib import utils
@@ -25,6 +26,11 @@ from openstackclient.network import sdk_utils
25 26
 LOG = logging.getLogger(__name__)
26 27
 
27 28
 
29
+_formatters = {
30
+    'location': format_columns.DictColumn,
31
+}
32
+
33
+
28 34
 def _get_columns(item):
29 35
     column_map = {
30 36
         'is_enabled': 'enabled',
@@ -110,7 +116,7 @@ class CreateNetworkFlavorProfile(command.ShowOne):
110 116
 
111 117
         obj = client.create_service_profile(**attrs)
112 118
         display_columns, columns = _get_columns(obj)
113
-        data = utils.get_item_properties(obj, columns, formatters={})
119
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
114 120
 
115 121
         return (display_columns, data)
116 122
 
@@ -246,5 +252,5 @@ class ShowNetworkFlavorProfile(command.ShowOne):
246 252
         obj = client.find_service_profile(parsed_args.flavor_profile,
247 253
                                           ignore_missing=False)
248 254
         display_columns, columns = _get_columns(obj)
249
-        data = utils.get_item_properties(obj, columns)
255
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
250 256
         return (display_columns, data)

+ 8
- 2
openstackclient/network/v2/network_meter.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -26,6 +27,11 @@ from openstackclient.network import sdk_utils
26 27
 LOG = logging.getLogger(__name__)
27 28
 
28 29
 
30
+_formatters = {
31
+    'location': format_columns.DictColumn,
32
+}
33
+
34
+
29 35
 def _get_columns(item):
30 36
     column_map = {
31 37
         'is_shared': 'shared',
@@ -102,7 +108,7 @@ class CreateMeter(command.ShowOne):
102 108
         attrs = _get_attrs(self.app.client_manager, parsed_args)
103 109
         obj = client.create_metering_label(**attrs)
104 110
         display_columns, columns = _get_columns(obj)
105
-        data = utils.get_item_properties(obj, columns, formatters={})
111
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
106 112
 
107 113
         return (display_columns, data)
108 114
 
@@ -186,5 +192,5 @@ class ShowMeter(command.ShowOne):
186 192
         obj = client.find_metering_label(parsed_args.meter,
187 193
                                          ignore_missing=False)
188 194
         display_columns, columns = _get_columns(obj)
189
-        data = utils.get_item_properties(obj, columns)
195
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
190 196
         return display_columns, data

+ 8
- 2
openstackclient/network/v2/network_meter_rule.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -26,6 +27,11 @@ from openstackclient.network import sdk_utils
26 27
 LOG = logging.getLogger(__name__)
27 28
 
28 29
 
30
+_formatters = {
31
+    'location': format_columns.DictColumn,
32
+}
33
+
34
+
29 35
 def _get_columns(item):
30 36
     column_map = {
31 37
         'tenant_id': 'project_id',
@@ -116,7 +122,7 @@ class CreateMeterRule(command.ShowOne):
116 122
         attrs = _get_attrs(self.app.client_manager, parsed_args)
117 123
         obj = client.create_metering_label_rule(**attrs)
118 124
         display_columns, columns = _get_columns(obj)
119
-        data = utils.get_item_properties(obj, columns, formatters={})
125
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
120 126
 
121 127
         return (display_columns, data)
122 128
 
@@ -199,5 +205,5 @@ class ShowMeterRule(command.ShowOne):
199 205
         obj = client.find_metering_label_rule(parsed_args.meter_rule_id,
200 206
                                               ignore_missing=False)
201 207
         display_columns, columns = _get_columns(obj)
202
-        data = utils.get_item_properties(obj, columns)
208
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
203 209
         return display_columns, data

+ 8
- 2
openstackclient/network/v2/network_qos_policy.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -27,6 +28,11 @@ from openstackclient.network import sdk_utils
27 28
 LOG = logging.getLogger(__name__)
28 29
 
29 30
 
31
+_formatters = {
32
+    'location': format_columns.DictColumn,
33
+}
34
+
35
+
30 36
 def _get_columns(item):
31 37
     column_map = {
32 38
         'is_shared': 'shared',
@@ -119,7 +125,7 @@ class CreateNetworkQosPolicy(command.ShowOne):
119 125
         attrs = _get_attrs(self.app.client_manager, parsed_args)
120 126
         obj = client.create_qos_policy(**attrs)
121 127
         display_columns, columns = _get_columns(obj)
122
-        data = utils.get_item_properties(obj, columns, formatters={})
128
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
123 129
         return (display_columns, data)
124 130
 
125 131
 
@@ -279,5 +285,5 @@ class ShowNetworkQosPolicy(command.ShowOne):
279 285
         obj = client.find_qos_policy(parsed_args.policy,
280 286
                                      ignore_missing=False)
281 287
         display_columns, columns = _get_columns(obj)
282
-        data = utils.get_item_properties(obj, columns)
288
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
283 289
         return (display_columns, data)

+ 8
- 2
openstackclient/network/v2/network_qos_rule.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import itertools
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -46,6 +47,11 @@ ACTION_SET = 'update'
46 47
 ACTION_SHOW = 'get'
47 48
 
48 49
 
50
+_formatters = {
51
+    'location': format_columns.DictColumn,
52
+}
53
+
54
+
49 55
 def _get_columns(item):
50 56
     column_map = {
51 57
         'tenant_id': 'project_id',
@@ -208,7 +214,7 @@ class CreateNetworkQosRule(command.ShowOne):
208 214
             msg = (_('Failed to create Network QoS rule: %(e)s') % {'e': e})
209 215
             raise exceptions.CommandError(msg)
210 216
         display_columns, columns = _get_columns(obj)
211
-        data = utils.get_item_properties(obj, columns)
217
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
212 218
         return display_columns, data
213 219
 
214 220
 
@@ -358,5 +364,5 @@ class ShowNetworkQosRule(command.ShowOne):
358 364
                    {'rule': rule_id, 'e': e})
359 365
             raise exceptions.CommandError(msg)
360 366
         display_columns, columns = _get_columns(obj)
361
-        data = utils.get_item_properties(obj, columns)
367
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
362 368
         return display_columns, data

+ 7
- 1
openstackclient/network/v2/network_qos_rule_type.py View File

@@ -13,6 +13,7 @@
13 13
 #    License for the specific language governing permissions and limitations
14 14
 #    under the License.
15 15
 
16
+from osc_lib.cli import format_columns
16 17
 from osc_lib.command import command
17 18
 from osc_lib import utils
18 19
 
@@ -20,6 +21,11 @@ from openstackclient.i18n import _
20 21
 from openstackclient.network import sdk_utils
21 22
 
22 23
 
24
+_formatters = {
25
+    'location': format_columns.DictColumn,
26
+}
27
+
28
+
23 29
 def _get_columns(item):
24 30
     column_map = {
25 31
         "type": "rule_type_name",
@@ -65,5 +71,5 @@ class ShowNetworkQosRuleType(command.ShowOne):
65 71
         client = self.app.client_manager.network
66 72
         obj = client.get_qos_rule_type(parsed_args.rule_type)
67 73
         display_columns, columns = _get_columns(obj)
68
-        data = utils.get_item_properties(obj, columns)
74
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
69 75
         return display_columns, data

+ 8
- 2
openstackclient/network/v2/network_rbac.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -27,6 +28,11 @@ from openstackclient.network import sdk_utils
27 28
 LOG = logging.getLogger(__name__)
28 29
 
29 30
 
31
+_formatters = {
32
+    'location': format_columns.DictColumn,
33
+}
34
+
35
+
30 36
 def _get_columns(item):
31 37
     column_map = {
32 38
         'target_tenant': 'target_project_id',
@@ -136,7 +142,7 @@ class CreateNetworkRBAC(command.ShowOne):
136 142
         attrs = _get_attrs(self.app.client_manager, parsed_args)
137 143
         obj = client.create_rbac_policy(**attrs)
138 144
         display_columns, columns = _get_columns(obj)
139
-        data = utils.get_item_properties(obj, columns)
145
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
140 146
         return display_columns, data
141 147
 
142 148
 
@@ -293,5 +299,5 @@ class ShowNetworkRBAC(command.ShowOne):
293 299
         obj = client.find_rbac_policy(parsed_args.rbac_policy,
294 300
                                       ignore_missing=False)
295 301
         display_columns, columns = _get_columns(obj)
296
-        data = utils.get_item_properties(obj, columns)
302
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
297 303
         return display_columns, data

+ 8
- 2
openstackclient/network/v2/network_segment.py View File

@@ -15,6 +15,7 @@
15 15
 
16 16
 import logging
17 17
 
18
+from osc_lib.cli import format_columns
18 19
 from osc_lib.command import command
19 20
 from osc_lib import exceptions
20 21
 from osc_lib import utils
@@ -26,6 +27,11 @@ from openstackclient.network import sdk_utils
26 27
 LOG = logging.getLogger(__name__)
27 28
 
28 29
 
30
+_formatters = {
31
+    'location': format_columns.DictColumn,
32
+}
33
+
34
+
29 35
 def _get_columns(item):
30 36
     return sdk_utils.get_osc_show_columns_for_sdk_resource(item, {})
31 37
 
@@ -90,7 +96,7 @@ class CreateNetworkSegment(command.ShowOne):
90 96
             attrs['segmentation_id'] = parsed_args.segment
91 97
         obj = client.create_segment(**attrs)
92 98
         display_columns, columns = _get_columns(obj)
93
-        data = utils.get_item_properties(obj, columns)
99
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
94 100
         return (display_columns, data)
95 101
 
96 102
 
@@ -242,5 +248,5 @@ class ShowNetworkSegment(command.ShowOne):
242 248
             ignore_missing=False
243 249
         )
244 250
         display_columns, columns = _get_columns(obj)
245
-        data = utils.get_item_properties(obj, columns)
251
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
246 252
         return (display_columns, data)

+ 7
- 2
openstackclient/network/v2/network_segment_range.py View File

@@ -19,6 +19,7 @@
19 19
 import itertools
20 20
 import logging
21 21
 
22
+from osc_lib.cli import format_columns
22 23
 from osc_lib.command import command
23 24
 from osc_lib import exceptions
24 25
 from osc_lib import utils
@@ -31,6 +32,10 @@ from openstackclient.network import sdk_utils
31 32
 
32 33
 LOG = logging.getLogger(__name__)
33 34
 
35
+_formatters = {
36
+    'location': format_columns.DictColumn,
37
+}
38
+
34 39
 
35 40
 def _get_columns(item):
36 41
     return sdk_utils.get_osc_show_columns_for_sdk_resource(item, {})
@@ -212,7 +217,7 @@ class CreateNetworkSegmentRange(command.ShowOne):
212 217
             attrs['physical_network'] = parsed_args.physical_network
213 218
         obj = network_client.create_network_segment_range(**attrs)
214 219
         display_columns, columns = _get_columns(obj)
215
-        data = utils.get_item_properties(obj, columns)
220
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
216 221
         data = _update_additional_fields_from_props(columns, props=data)
217 222
         return (display_columns, data)
218 223
 
@@ -451,6 +456,6 @@ class ShowNetworkSegmentRange(command.ShowOne):
451 456
             ignore_missing=False
452 457
         )
453 458
         display_columns, columns = _get_columns(obj)
454
-        data = utils.get_item_properties(obj, columns)
459
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
455 460
         data = _update_additional_fields_from_props(columns, props=data)
456 461
         return (display_columns, data)

+ 1
- 0
openstackclient/network/v2/port.py View File

@@ -51,6 +51,7 @@ _formatters = {
51 51
     'dns_assignment': format_columns.ListDictColumn,
52 52
     'extra_dhcp_opts': format_columns.ListDictColumn,
53 53
     'fixed_ips': format_columns.ListDictColumn,
54
+    'location': format_columns.DictColumn,
54 55
     'security_group_ids': format_columns.ListColumn,
55 56
     'tags': format_columns.ListColumn,
56 57
 }

+ 1
- 0
openstackclient/network/v2/router.py View File

@@ -61,6 +61,7 @@ _formatters = {
61 61
     'external_gateway_info': RouterInfoColumn,
62 62
     'availability_zones': format_columns.ListColumn,
63 63
     'availability_zone_hints': format_columns.ListColumn,
64
+    'location': format_columns.DictColumn,
64 65
     'routes': RoutesColumn,
65 66
     'tags': format_columns.ListColumn,
66 67
 }

+ 3
- 0
openstackclient/network/v2/security_group.py View File

@@ -16,6 +16,7 @@
16 16
 import argparse
17 17
 
18 18
 from cliff import columns as cliff_columns
19
+from osc_lib.cli import format_columns
19 20
 from osc_lib.command import command
20 21
 from osc_lib import utils
21 22
 import six
@@ -77,11 +78,13 @@ class ComputeSecurityGroupRulesColumn(cliff_columns.FormattableColumn):
77 78
 
78 79
 
79 80
 _formatters_network = {
81
+    'location': format_columns.DictColumn,
80 82
     'security_group_rules': NetworkSecurityGroupRulesColumn,
81 83
 }
82 84
 
83 85
 
84 86
 _formatters_compute = {
87
+    'location': format_columns.DictColumn,
85 88
     'rules': ComputeSecurityGroupRulesColumn,
86 89
 }
87 90
 

+ 8
- 2
openstackclient/network/v2/security_group_rule.py View File

@@ -16,6 +16,7 @@
16 16
 import argparse
17 17
 import logging
18 18
 
19
+from osc_lib.cli import format_columns
19 20
 from osc_lib.cli import parseractions
20 21
 from osc_lib import exceptions
21 22
 from osc_lib import utils
@@ -31,6 +32,11 @@ from openstackclient.network import utils as network_utils
31 32
 LOG = logging.getLogger(__name__)
32 33
 
33 34
 
35
+_formatters = {
36
+    'location': format_columns.DictColumn,
37
+}
38
+
39
+
34 40
 def _format_security_group_rule_show(obj):
35 41
     data = network_utils.transform_compute_security_group_rule(obj)
36 42
     return zip(*sorted(six.iteritems(data)))
@@ -337,7 +343,7 @@ class CreateSecurityGroupRule(common.NetworkAndComputeShowOne):
337 343
         # Create and show the security group rule.
338 344
         obj = client.create_security_group_rule(**attrs)
339 345
         display_columns, columns = _get_columns(obj)
340
-        data = utils.get_item_properties(obj, columns)
346
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
341 347
         return (display_columns, data)
342 348
 
343 349
     def take_action_compute(self, client, parsed_args):
@@ -596,7 +602,7 @@ class ShowSecurityGroupRule(common.NetworkAndComputeShowOne):
596 602
         if not obj['remote_ip_prefix']:
597 603
             obj['remote_ip_prefix'] = _format_remote_ip_prefix(obj)
598 604
         display_columns, columns = _get_columns(obj)
599
-        data = utils.get_item_properties(obj, columns)
605
+        data = utils.get_item_properties(obj, columns, formatters=_formatters)
600 606
         return (display_columns, data)
601 607
 
602 608
     def take_action_compute(self, client, parsed_args):

+ 1
- 0
openstackclient/network/v2/subnet.py View File

@@ -61,6 +61,7 @@ _formatters = {
61 61
     'allocation_pools': AllocationPoolsColumn,
62 62
     'dns_nameservers': format_columns.ListColumn,
63 63
     'host_routes': HostRoutesColumn,
64
+    'location': format_columns.DictColumn,
64 65
     'service_types': format_columns.ListColumn,
65 66
     'tags': format_columns.ListColumn,
66 67
 }

+ 1
- 0
openstackclient/network/v2/subnet_pool.py View File

@@ -42,6 +42,7 @@ def _get_columns(item):
42 42
 
43 43
 
44 44
 _formatters = {
45
+    'location': format_columns.DictColumn,
45 46
     'prefixes': format_columns.ListColumn,
46 47
     'tags': format_columns.ListColumn,
47 48
 }

Loading…
Cancel
Save