summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-19 09:43:42 +0200
committerManuel Buil <mbuil@suse.com>2018-11-06 13:15:03 +0000
commit4026cdb4df55f36266f96120ebf585743b1de90c (patch)
treeaa5f8b4144071c26689a0bd507986f2fdcad3a16 /xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2
parent95db6d04e2f747656edd6c67e537755dc728a59a (diff)
[baremetal] Provide networking for suse nodes
When deploying baremetal, the traffic should be segmented using the different interfaces instead of through vlans. All the config is done based on idf and pdf information. When doing non-baremetal, opnfv and nodes get the same config. When doing baremetal, opnfv and nodes get a different network config Apart from that, if vlan_id is defined in the name, there is no need for VLAN_ID in the interface descriptor. This simplifies things Change-Id: Iddbb90af807b43e247e5ee11fe735df9e823d4bf Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2')
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j23
1 files changed, 1 insertions, 2 deletions
diff --git a/xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2
index 70811a09..7c2929d6 100644
--- a/xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/osa/suse.interface.j2
@@ -1,8 +1,7 @@
STARTMODE='auto'
BOOTPROTO='static'
{% if item.vlan_id is defined %}
-ETHERDEVICE={{ ansible_default_ipv4.interface }}
-VLAN_ID={{ item.vlan_id }}
+ETHERDEVICE={{ item.name.split('.')[0] }}
{% endif %}
{% if item.bridge_ports is defined %}
BRIDGE='yes'