« Previous | Next » 

Revision c01a7953

IDc01a7953fab783213c471e305f85d083a1508424
Parent 95155a8c
Child 402df383

Added by Dimitris Aragiorgis almost 11 years ago

Various refactoring concerning networks

Add external flag to UnlockedCommitIp. Use this flag from cmdlib to
reserve and release IPs via TemporaryReservationManager and not
directly by accessing the pool it self.

Remove checks of style IsReserved() from cmdlib, while cfg.ReserveIp()
does this check and raises the corresponding error.

Reduce invocations of self.proc.GetEDId(). Store this in a
temporary var and use it inside a method.

Delegate exception handling in config/network. Modify
ReserveIp/GenerateIP to raise OpPrereqError. So there is no need to
try-except in cmdlib.

Signed-off-by: Dimitris Aragiorgis <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences