Statistics
| Branch: | Tag: | Revision:

root @ 8c3b6093

Name Size
  autotools
  daemons
  devel
  doc
  lib
  man
  qa
  src
  test
  tools
.ghci 21 Bytes
.gitignore 2.2 kB
COPYING 17.6 kB
INSTALL 10.7 kB
Makefile.am 59.8 kB
NEWS 103.2 kB
README 189 Bytes
UPGRADE 9.9 kB
autogen.sh 283 Bytes
configure.ac 23.9 kB
epydoc.conf.in 444 Bytes
pylintrc 2.8 kB

Latest revisions

# Date Author Comment
8c3b6093 06/10/2013 05:21 pm Dimitris Aragiorgis

haskell support for abstract networks

Signed-off-by: Dimitris Aragiorgis <>

6023923b 06/10/2013 10:41 am Dimitris Aragiorgis

Use GetDefaultDiskTemplate in qa_network

In qa_network we want to create instances to check NICs within
networks. For that we use the disk templated given by
GetDefaultDiskTemplate() and do not install any OS in it
(--no-install).

Signed-off-by: Dimitris Aragiorgis <>

3c5d3f7b 06/10/2013 10:40 am Dimitris Aragiorgis

Update qa for networks

Support abstract networks (--network option becomes non mandatory)
Use _QaInstance object. AcquireInstance() returns now
an object and not a dict. Use instance.name and instance.Release()
accordingly.
Extend network qa to test _AllIPs()...

d7ffd9f3 06/10/2013 10:40 am Dimitris Aragiorgis

Extend network QA

Move GetNonexistentNetwork() in qa_utils.

Add various corner cases for existing test add/remove and
connect/disconnect.

Add qa for OpInstanceCreate and OpInstanceSetParams to test
how NICs interact with networks.

Enable network tests in qa-sample.json....

5e1c599f 06/10/2013 10:39 am Dimitris Aragiorgis

Implement methods in Generic Network

IsReserved should return False because no pool exists, ReserveIp/ReleaseIp
should do nothing while GenerateFree should raise an error (ip=pool is passed
to an network without AddressPool.

Signed-off-by: Dimitris Aragiorgis <>

53195377 06/10/2013 10:37 am Dimitris Aragiorgis

Use new network interface

Replace old network.AddressPool() with network.Network(). Replace
network.AddressPool and network.AddressPool.InitializeNetwork with
network.Network. Additionally be aware that this raises
OpPrereqError and not AddressPoolError so not try-except-raise is...

22dc14c4 06/10/2013 09:44 am Dimitris Aragiorgis

Total refactor of network module

Add GenericNetwork class to implement basic validation methods
for an IPv4/IPv6 network basically conserning gateways and subnets.

Make AddressPool class extend GenericNetwork and implement methods
that reserve/release IPs in a IPv4 address pool (using bitarray)....

06dfde19 06/10/2013 09:30 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...

402df383 06/04/2013 03:40 pm Dimitris Aragiorgis

Remove try-except in ReserveIp/ReleaseIp

There is no need to try-except in cmdlib when reserving and releasing
Ips because this check is delegated to corresponding config methods
who raise the proper errors.

Signed-off-by: Dimitris Aragiorgis <>

c01a7953 06/04/2013 03:28 pm Dimitris Aragiorgis

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()...

View all revisions | View revisions

Also available in: Atom