sk2/autonetkit — Issue #103: Expand support for config file
Author: sk2
Created: 2012-01-03 14:00:15+00:00
State: open

Currently is underused.
Uses http://docs.python.org/library/configparser.html
Allow servers to be set, in similar style to ssh configs
Note configparser doesn't allow repeated blocks easily... so not ideal for servers

should use http://www.voidspace.org.uk/python/configobj.html

as then can specify multiple servers, and set if active or not

eg
[Targets]
netkit

[Protocols]
IGP = OSPF

[Olive Hosts]]
[[local]]
# located in adelaide
host = olivehost.local
username = autonetkit
base image = /space/base-image.img
qemu location = /usr/bin/qemu

[Netkit Hosts]

[[trc1]]
# dev in adelaide
host = nkhost.local
username = autonetkit
active = True

[[monster]]
# located in lboro
host = monster.lboro
username = autonetkit
active = False

also allow igp to be set, etc