Revision 6a2c20f2 lib/cmdlib.py

b/lib/cmdlib.py
16319 16319
    self.add_locks[locking.LEVEL_NETWORK] = self.network_uuid
16320 16320

  
16321 16321
  def CheckPrereq(self):
16322
    if self.op.network is None:
16323
      raise errors.OpPrereqError("Network must be given",
16324
                                 errors.ECODE_INVAL)
16325

  
16326 16322
    try:
16327 16323
      existing_uuid = self.cfg.LookupNetwork(self.op.network_name)
16328 16324
    except errors.OpPrereqError:

Also available in: Unified diff