bug 6268: cloud-private is actually the management interface

This commit is contained in:
Chiradeep Vittal 2010-09-30 15:54:27 -07:00
parent f70b55daa2
commit 2c14634e3b

View File

@ -444,7 +444,7 @@ def get_private_nic( args):
pifrec = session.xenapi.PIF.get_record(pif)
network = pifrec.get('network')
nwrec = session.xenapi.network.get_record(network)
if nwrec.get('name_label') == 'cloud-private':
if nwrec.get('name_label') == 'cloud-guest':
return pifrec.get('device')
if pifrec.get('management'):
mgmtnic = pifrec.get('device')