Commit 8ab0dbd3 authored by Hamza Dely's avatar Hamza Dely

MàJ de switchs2.py : NTP et Gateway sur le VLAN Switches

parent a066e7e8
......@@ -28,7 +28,11 @@ console inactivity-timer 30
logging {{ s }}
{%- endfor %}
;--- IP du switch ---
{%- if gateway %}
ip default-gateway {{ gateway }}
{%- else %}
no ip default-gateway
{%- endif %}
{%- for vlan in vlans %}
vlan {{ vlan.id }}
name "{{ vlan.name|capitalize }}"
......
......@@ -532,9 +532,8 @@ def conf_switch(hostname):
data['subnet'] = '255.255.255.0'
if u"switches" in unicode(switch['host']):
data['public'] = False
data['ntp_servers'] = ['10.231.100.38']
data['ntp_servers'] = ['10.231.100.102']
data['log_servers'] = ['10.231.100.38']
data['gateway'] = '10.231.100.4'
data['network_id'] = '10.231.100.0'
data['subnet'] = '255.255.255.0'
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment