| Branch: | Tag: | Revision:

root / lib @ 6a2c20f2

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.5 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 9.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
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

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