[XM] Differentiate between VLAN PIFs and normal PIFs in network-show

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-04-27 12:51:14 +01:00
1 parent cd389674c4
commit 21ac7c5fdd
1 file changed
+10 -2
+10 -2
View File
@@ -2301,11 +2301,19 @@ def xm_network_show(args):
else:
vif = ''
if pif:
if int(pif['VLAN']) > -1:
pif = '%s.%s' % (pif['device'], pif['VLAN'])
else:
pif = pif['device']
else:
pif = ''
if i == 0:
r = {'name_label':network['name_label'],
'vif':vif, 'pif':pif['device']}
'vif':vif, 'pif':pif}
else:
r = {'name_label':'','vif':vif,'pif':pif['device']}
r = {'name_label':'', 'vif':vif, 'pif':pif}
print format2 % r
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.