@@ -47,26 +47,24 @@ def cli(env, identifier, no_vs, no_hardware):
4747
4848 if not no_vs :
4949 if subnet ['virtualGuests' ]:
50- vs_table = formatting .Table (['Hostname' , 'Domain' , 'IP' ])
51- vs_table .align ['Hostname' ] = 'r'
52- vs_table .align ['IP' ] = 'l'
50+ vs_table = formatting .Table (['hostname' , 'domain' , 'public_ip' , 'private_ip' ])
5351 for vsi in subnet ['virtualGuests' ]:
5452 vs_table .add_row ([vsi ['hostname' ],
5553 vsi ['domain' ],
56- vsi .get ('primaryIpAddress' )])
54+ vsi .get ('primaryIpAddress' ),
55+ vsi .get ('primaryBackendIpAddress' )])
5756 table .add_row (['vs' , vs_table ])
5857 else :
5958 table .add_row (['vs' , 'none' ])
6059
6160 if not no_hardware :
6261 if subnet ['hardware' ]:
63- hw_table = formatting .Table (['Hostname' , 'Domain' , 'IP' ])
64- hw_table .align ['Hostname' ] = 'r'
65- hw_table .align ['IP' ] = 'l'
62+ hw_table = formatting .Table (['hostname' , 'domain' , 'public_ip' , 'private_ip' ])
6663 for hardware in subnet ['hardware' ]:
6764 hw_table .add_row ([hardware ['hostname' ],
6865 hardware ['domain' ],
69- hardware .get ('primaryIpAddress' )])
66+ hardware .get ('primaryIpAddress' ),
67+ hardware .get ('primaryBackendIpAddress' )])
7068 table .add_row (['hardware' , hw_table ])
7169 else :
7270 table .add_row (['hardware' , 'none' ])
0 commit comments