Skip to content

Commit 4de733f

Browse files
committed
add tags and note to subnet detail
1 parent d863b88 commit 4de733f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

SoftLayer/CLI/subnet/detail.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ def cli(env, identifier, no_vs, no_hardware):
4444
table.add_row(['datacenter', subnet['datacenter']['name']])
4545
table.add_row(['usable ips',
4646
subnet.get('usableIpAddressCount', formatting.blank())])
47+
table.add_row(['note',
48+
subnet.get('note', formatting.blank())])
49+
table.add_row(['tags',
50+
formatting.tags(subnet.get('tagReferences'))])
4751

4852
if not no_vs:
4953
if subnet['virtualGuests']:
@@ -55,7 +59,7 @@ def cli(env, identifier, no_vs, no_hardware):
5559
vsi.get('primaryBackendIpAddress')])
5660
table.add_row(['vs', vs_table])
5761
else:
58-
table.add_row(['vs', 'none'])
62+
table.add_row(['vs', formatting.blank()])
5963

6064
if not no_hardware:
6165
if subnet['hardware']:
@@ -67,6 +71,6 @@ def cli(env, identifier, no_vs, no_hardware):
6771
hardware.get('primaryBackendIpAddress')])
6872
table.add_row(['hardware', hw_table])
6973
else:
70-
table.add_row(['hardware', 'none'])
74+
table.add_row(['hardware', formatting.blank()])
7175

7276
env.fout(table)

0 commit comments

Comments
 (0)