transplant: Generate extra interfaces config file 93/19493/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 4 May 2016 15:58:56 +0000 (17:58 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 24 Aug 2016 14:00:08 +0000 (16:00 +0200)
commit56d816920bfefe7d41d9c35cb8fb52e36295ee07
tree99f5adda5e0dab02234243a075cb144d83f1c7ff
parentae8196be2c5863a5ca837828eead7188d608023d
transplant: Generate extra interfaces config file

Original work by Josep, only signed by Alex for upstreaming.

The DEA override may contain a IFCGF_<interface> section in its 'fuel:'
section, containing the necessary keys to produce a ifcfg-<interface>
file, like in this example:

fuel:
   IFCFG_ETH1:
     device: eth1
     ipaddress: 10.0.1.10
     netmask: 255.255.255.0
     gateway: 10.0.1.254

FIXME: In order for Network Manager to use the newly added interfaces
for outgoing traffic and honor their GATEWAY setting (e.g. if we just
added one public interface), the default route on admin iface (most of
the time called eth0) should be disabled. For now, we assume the admin
interface is always "eth0".

Change-Id: I96e3ac5046dd59ed10c43099dd76a6418806a1f3
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
deploy/transplant_fuel_settings.py