Statistics
| Branch: | Tag: | Revision:

root / lib @ 6a2c20f2

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.5 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 9.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
1a57888e 03/18/2013 04:45 am Dimitris Aragiorgis

Make AddressPool extend GenericNetwork

..and make AddressPool only deal with IPv4 address pool and
implement the corresponding methods for reserving/releasing IPs.
Extend _Validate and init to include reservation slots of
a network object.

Signed-off-by: Dimitris Aragiorgis <>

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

Move pool creation in CheckPrereq

In LUNetworkAdd create pool inside CheckPrereq and raise OpPrereqError
if it fails.

Signed-off-by: Dimitris Aragiorgis <>

6a2c20f2 03/18/2013 04:45 am Dimitris Aragiorgis

Make --network optional

To this end one can define solely collision domains (Ethernet
networks), IPv4 Address Pools, and IPv6 networks and all these
combined.

Make network slot optionalField in Haskell too. This is the only
change needed.

Signed-off-by: Dimitris Aragiorgis <>

39a56351 03/18/2013 04:45 am Dimitris Aragiorgis

Add Network class in network module

Towards to abstract networks we introduce Network class that
currently is only a wrapper of AddressPool. Move Check method
inside Network class. Rename AddressPoolError to NetworkError
and make every network.AddressPool(nobj) invocation a...

79fa745e 03/18/2013 04:45 am Dimitris Aragiorgis

Add GenericNetwork class in network module

This class will be the base class for every network. It implements
basic validation methods for subnets and gateways and all other
Network classes should extend it. Additionally implement all methods
that are externally invoked; for IsReserved, Reserve, Release just...

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

Rename private methods in network module

Most methods are used internally by the class it self; make those
methods start with a '_'. This will make things easier when we
support abstract networks and we have to know which method
are externally used and should be implemented....

85c4ae9b 03/18/2013 04:45 am Dimitris Aragiorgis

Refactor network module

Merge InitializePool inside init. Introduce new helper
funtion _InitializeReservations which creates the corresponding
nobj entries if they do not exist and reserves gateway, network,
and broadcast addresses.

Signed-off-by: Dimitris Aragiorgis <>

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

Add Check method in network module

This checks if the given address/network pair is valid.
If not it raises OpPrereqError. This is used in LUNetworkSetParams
to check if a modification is valid. This is done in CheckPrereq
and not in Exec via pool.Validate because in case of invalid pool...

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

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

Add _AllIPs() config method

This returns a list of tuples (ip, network). Use it in ReserveIp,
where a network without AddressPool can be passed, in order to
ensure IP uniqueness inside the network. Please note that no
configuration error is raised if a two NICs have the same IP but do...

View revisions

Also available in: Atom