Instead of redefining the flag 'vlan_interface', just setting a default value (vmnic0) in vmwareapi_net.py

This commit is contained in:
sateesh 2011-05-26 10:36:52 +05:30
parent db18a79241
commit 61a4dd17be

View File

@ -30,9 +30,7 @@ LOG = logging.getLogger("nova.network.vmwareapi_net")
FLAGS = flags.FLAGS
flags.DEFINE_string('vlan_interface', 'vmnic0',
'Physical network adapter name in VMware ESX host for '
'vlan networking')
FLAGS['vlan_interface'].SetDefault('vmnic0')
def ensure_vlan_bridge(vlan_num, bridge, net_attrs=None):