deploy-config: honor interfaces and transformations 63/16863/4
authorJosep Puigdemont <josep.puigdemont@enea.com>
Wed, 13 Jul 2016 16:29:05 +0000 (18:29 +0200)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Wed, 17 Aug 2016 11:52:16 +0000 (11:52 +0000)
commit3ec3fb2d1d316b656a13f9c1ca00cc8a7fcd51de
tree6de52894c10d36fe9bfd7228fbcd5d5d780c2d26
parent9dc7082c230f7f22b37ae9bb04493387c466fa7b
deploy-config: honor interfaces and transformations

Currently all scenarios assume interfaces and transformations are the
same for all nodes in the POD, however some PODs may contain nodes that
have different hardware, or where the interfaces are configured
differently.

In this patch we honor the original interfaces and transformations if
they are present in the dea-override.yaml file. The way to add this
information in the dea-override is by having a "nodes:" section with
this information, ie:

nodes:
- id: 1
  interfaces: interfaces_1
  transformations: transformations_1
- id: 2
  interfaces: interfaces_2
  transformations: transformations_2
- id: 3
  interfaces: interfaces_1
  transformations: transformations_1

The node IDs is used to find out this information.

Change-Id: If6ff8ca28b42e043d1bdf91142a4a56ae36e4304
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
deploy/deploy-config.py