| Branch: | Tag: | Revision:

root / lib @ 3d736ac9

Name Size
  watcher 1.2 kB 6.1 kB 124.4 kB 109.1 kB 34.5 kB 121.8 kB 603.5 kB 4.3 kB 86 kB 60 kB 26.7 kB 10.8 kB 10.7 kB 79.2 kB 5.9 kB 61.1 kB 16.4 kB 26.1 kB 18.6 kB 6.1 kB 61 kB 65.6 kB 2.5 kB 66 kB 5.7 kB 9.6 kB 82.1 kB 26.1 kB 25.1 kB 6.3 kB 4.5 kB 11.5 kB 10.2 kB 13.2 kB 11.7 kB 7.4 kB 18.3 kB

Latest revisions

# Date Author Comment
ac0f4fe5 03/18/2013 04:45 am Dimitris Aragiorgis

Delegate IsReserved() check in ReserveIp()

..and raise OpPrereqError. Thus remove any if pool.IsReserved()..
and try-except-raise in LUNetworkSetParams().

Signed-off-by: Dimitris Aragiorgis <>

3d736ac9 03/18/2013 04:45 am Dimitris Aragiorgis

Make ReserveIp/GenerateIp raise OpPrereqError

Both catch AddressPool errors and raise OpPrereqError with
the corresponding message. Remove any unnecessary try-except
when invoking these two config methods.

Signed-off-by: Dimitris Aragiorgis <>

83695d19 03/18/2013 04:45 am Dimitris Aragiorgis

Make GetStats() an AddressPool method

..and remove it from cmdlib

Signed-off-by: Dimitris Aragiorgis <>

e79955a6 03/18/2013 04:45 am Dimitris Aragiorgis

Use HooksDict() everywhere

To do so network object should be available just after CheckPrereq().
Thus move object creation away from Exec() in LUNetworkAdd.

Signed-off-by: Dimitris Aragiorgis <>

7ee959dc 03/18/2013 04:45 am Dimitris Aragiorgis

Support reserve/release external IPs

Modify ReserveIp/ReleaseIp/GenerateIp/UnlockedCommitIp to take
an additional argument; the external flag.
Update invocations of the corresponding methods in cmdlib.
Use new methods in LUNetworkSetParams with external flag set....

55de975c 03/18/2013 04:45 am Dimitris Aragiorgis

Fix early returns in network module

Replace early returns with proper if-else statements.

Signed-off-by: Dimitris Aragiorgis <>

89f5beda 03/18/2013 04:45 am Dimitris Aragiorgis

Rename some vars for the sake of readability

In network module use nobj wherever we refer to L{objects.Network}
and pool for AddressPool class. Apply that in LUNetworkSetParams()
too. Change InitializeNetwork() to InitializePool().

Signed-off-by: Dimitris Aragiorgis <>

c12401f2 03/18/2013 04:45 am Dimitris Aragiorgis

Replace _GetSize() with numhosts in network

Use numhosts property of ipaddr's IPNetwork class of instead of
_GetSize() in network module. Remove non used GetFreeAddress()

Signed-off-by: Dimitris Aragiorgis <>

e648cea4 03/18/2013 04:42 am Dimitris Aragiorgis

Hotplug: client support

Add --hotplug option. Only used in OpInstanceSetParams.
If this is omitted modifications become effective after

Signed-off-by: Dimitris Aragiorgis <>

11714164 03/18/2013 04:40 am Dimitris Aragiorgis

Hotplug: cmdlib support

Hotpluging is done by functions invoked by ApplyContainerMods(). In
order hotpluging to take place a --hotplug option must be passed.

If no --hotplug is passed during gnt-instance modify the modifycations
will take place after reboot....

View revisions

Also available in: Atom