summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/roles/bootstrap-host/templates
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-11-07 14:21:07 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-07 14:21:07 +0000
commit5810ddcaac4a7405d683216f877fc0deafefb0f1 (patch)
treea2bbed303a5a42005d4917d63d04b5d58fa58b2f /xci/playbooks/roles/bootstrap-host/templates
parentcf2583713d106926d9be63ac39915e60428bf13c (diff)
parent4026cdb4df55f36266f96120ebf585743b1de90c (diff)
Merge "[baremetal] Provide networking for suse nodes"
Diffstat (limited to 'xci/playbooks/roles/bootstrap-host/templates')
-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'