summaryrefslogtreecommitdiff
path: root/roles/dellos6/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dellos6/bootstrap')
-rw-r--r--roles/dellos6/bootstrap/templates/init.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2
index 2435c738..8a0c1ae4 100644
--- a/roles/dellos6/bootstrap/templates/init.j2
+++ b/roles/dellos6/bootstrap/templates/init.j2
@@ -3,12 +3,17 @@ configure
no ip domain-lookup
hostname {{ host_name }}
-{# TODO: hardcoded address and vlan tag! #}
-interface vlan 1
-ip address 192.168.42.200 255.255.255.0
+
+vlan 42
+name mgmt
+exit
+interface vlan {{ dellos6_mgmt_vlan }}
+ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }}
exit
no spanning-tree
+{# TODO: configure management port #}
+
crypto key generate rsa
crypto key generate dsa
ip ssh server