Skip to content

Commit dab72d5

Browse files
caberoscaberos
authored andcommitted
update the network vlan on hardware detail
1 parent 926e24b commit dab72d5

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

SoftLayer/CLI/hardware/detail.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from SoftLayer.CLI import helpers
1010
from SoftLayer import utils
1111

12+
1213
# pylint: disable=R0915
1314

1415

@@ -71,9 +72,11 @@ def cli(env, identifier, passwords, price, components):
7172
table.add_row(['last_transaction', last_transaction])
7273
table.add_row(['billing', 'Hourly' if result['hourlyBillingFlag'] else 'Monthly'])
7374

74-
vlan_table = formatting.Table(['type', 'number', 'id'])
75+
vlan_table = formatting.Table(['type', 'number', 'id', 'Name', 'netmask'])
7576
for vlan in result['networkVlans']:
76-
vlan_table.add_row([vlan['networkSpace'], vlan['vlanNumber'], vlan['id']])
77+
vlan_table.add_row([vlan['networkSpace'], vlan['vlanNumber'],
78+
vlan['id'], vlan['fullyQualifiedName'],
79+
vlan['primarySubnets'][0]['netmask']])
7780

7881
table.add_row(['vlans', vlan_table])
7982

SoftLayer/managers/hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def get_hardware(self, hardware_id, **kwargs):
269269
'lastTransaction[transactionGroup],'
270270
'hourlyBillingFlag,'
271271
'tagReferences[id,tag[name,id]],'
272-
'networkVlans[id,vlanNumber,networkSpace],'
272+
'networkVlans[id,vlanNumber,networkSpace, fullyQualifiedName,primarySubnets[ipAddresses]],'
273273
'monitoringServiceComponent,networkMonitors[queryType,lastResult,responseAction],'
274274
'remoteManagementAccounts[username,password]'
275275
)

0 commit comments

Comments
 (0)