• Guido Trotter's avatar
    LUSetInstanceParams: Fix nic handling · 5c44da6a
    Guido Trotter authored
      Use constants.VALUE_NONE rather than hardcoding the string "none"
      If we're adding a nic fill the nic_dict with default values
      Check if the mac is syntactically valid, if we have one
      Don't allow the mac to be 'auto' when modifying a nic
      Check that bridge and mac if present in the dict are not None
        (before this wasn't handled at all)
      Generate the nic mac address here if demanded
      Do not generate nics and macs
    Reviewed-by: iustin
cmdlib.py 238 KB