Fix prefixes output for subnet pool list
Fixed "os subnet pool list" command to properly disply the list of subnet pool prefixes in the "Prefixes" column. This fix is consistent with the "os subnet pool create" and "os subnet pool show" command output. Change-Id: I431d85c3b7f5bf8a327500decf3a15063fc5b120 Closes-Bug: #1569480
This commit is contained in:
parent
3be49a8abe
commit
3a4d53a93b
@ -184,7 +184,7 @@ class ListSubnetPool(command.Lister):
|
||||
return (headers,
|
||||
(utils.get_item_properties(
|
||||
s, columns,
|
||||
formatters={},
|
||||
formatters=_formatters,
|
||||
) for s in data))
|
||||
|
||||
|
||||
|
@ -246,7 +246,7 @@ class TestListSubnetPool(TestSubnetPool):
|
||||
data.append((
|
||||
pool.id,
|
||||
pool.name,
|
||||
pool.prefixes,
|
||||
utils.format_list(pool.prefixes),
|
||||
))
|
||||
|
||||
data_long = []
|
||||
@ -254,7 +254,7 @@ class TestListSubnetPool(TestSubnetPool):
|
||||
data_long.append((
|
||||
pool.id,
|
||||
pool.name,
|
||||
pool.prefixes,
|
||||
utils.format_list(pool.prefixes),
|
||||
pool.default_prefixlen,
|
||||
pool.address_scope_id,
|
||||
))
|
||||
|
7
releasenotes/notes/bug-1569480-c52e330548bfbd78.yaml
Normal file
7
releasenotes/notes/bug-1569480-c52e330548bfbd78.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- Fixed ``subnet pool list`` command to properly disply the
|
||||
list of subnet pool prefixes in the ``Prefixes`` column.
|
||||
This fix is consistent with the ``subnet pool create`` and
|
||||
``subnet pool show`` command output.
|
||||
[Bug `1569480 <https://bugs.launchpad.net/bugs/1569480>`_]
|
Loading…
Reference in New Issue
Block a user