summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap/templates/init.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dellos6/bootstrap/templates/init.j2')
-rw-r--r--roles/dellos6/bootstrap/templates/init.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2
index 8a0c1ae4..eef1e0a6 100644
--- a/roles/dellos6/bootstrap/templates/init.j2
+++ b/roles/dellos6/bootstrap/templates/init.j2
@@ -7,6 +7,11 @@ hostname {{ host_name }}
vlan 42
name mgmt
exit
+{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %}
+interface {{ dellos6_mgmt_interface }}
+switchport access vlan {{ dellos6_mgmt_vlan }}
+exit
+{% endif %}
interface vlan {{ dellos6_mgmt_vlan }}
ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }}
exit