transplant: Generate extra interfaces config file 51/20151/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Wed, 4 May 2016 15:58:56 +0000 (17:58 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Thu, 1 Sep 2016 14:12:56 +0000 (14:12 +0000)
commit9abfd0c63a26d9ee3230ecc0c1153533034f04d4
treee7ff178532b0d49b71b6cc60e250e3f0697ae77b
parent00c404ef7066e31adfc409a15d9e0e118e0b491a
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>
(cherry picked from commit 56d816920bfefe7d41d9c35cb8fb52e36295ee07)
deploy/transplant_fuel_settings.py