Revision 90017904 lib/client/gnt_cluster.py

b/lib/client/gnt_cluster.py
121 121

  
122 122
  master_netdev = opts.master_netdev
123 123
  if master_netdev is None:
124
    master_netdev = constants.DEFAULT_BRIDGE
124
    if not opts.nicparams[constants.NIC_MODE]:
125
      # default case, use bridging
126
      master_netdev = constants.DEFAULT_BRIDGE
127
    elif opts.nicparams[constants.NIC_MODE] == constants.NIC_MODE_OVS:
128
      # default ovs is different from default bridge
129
      master_netdev = constants.DEFAULT_OVS
130
      opts.nicparams[constants.NIC_LINK] = constants.DEFAULT_OVS
125 131

  
126 132
  hvlist = opts.enabled_hypervisors
127 133
  if hvlist is None:

Also available in: Unified diff