Revision 87e43988 lib/cmdlib.py

b/lib/cmdlib.py
4592 4592
        if not utils.IsValidMac(mac.lower()):
4593 4593
          raise errors.OpPrereqError("Invalid MAC address specified: %s" %
4594 4594
                                     mac)
4595
        else:
4596
          # or validate/reserve the current one
4597
          if self.cfg.IsMacInUse(mac):
4598
            raise errors.OpPrereqError("MAC address %s already in use"
4599
                                       " in cluster" % mac)
4600

  
4595 4601
      # bridge verification
4596 4602
      bridge = nic.get("bridge", None)
4597 4603
      if bridge is None:

Also available in: Unified diff