Statistics
| Branch: | Tag: | Revision:

root / lib @ 3d736ac9

Name Size
  build
  client
  confd
  http
  hypervisor
  impexpd
  masterd
  rapi
  server
  tools
  utils
  watcher
__init__.py 1.2 kB
asyncnotifier.py 6.1 kB
backend.py 124.4 kB
bdev.py 109.1 kB
bootstrap.py 34.5 kB
cli.py 121.8 kB
cmdlib.py 603.5 kB
compat.py 4.3 kB
config.py 86 kB
constants.py 60 kB
daemon.py 26.7 kB
errors.py 10.8 kB
ht.py 10.7 kB
jqueue.py 79.2 kB
jstore.py 5.9 kB
locking.py 61.1 kB
luxi.py 16.4 kB
mcpu.py 26.1 kB
netutils.py 18.6 kB
network.py 6.1 kB
objects.py 61 kB
opcodes.py 65.6 kB
outils.py 2.5 kB
ovf.py 66 kB
pathutils.py 5.7 kB
qlang.py 9.6 kB
query.py 82.1 kB
rpc.py 26.1 kB
rpc_defs.py 25.1 kB
runtime.py 6.3 kB
serializer.py 4.5 kB
ssconf.py 11.5 kB
ssh.py 10.2 kB
storage.py 13.2 kB
uidpool.py 11.7 kB
vcluster.py 7.4 kB
workerpool.py 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()
method.

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
reboot.

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