Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Commit

Permalink
"listified" NTP stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Mierdin committed Jun 5, 2014
1 parent 840007d commit f8dbcc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions config.yaml
Expand Up @@ -83,8 +83,9 @@ ports:
misc:
hostname: "N5K-A"
mgmtgw: 10.1.1.1
ntp1: 192.168.11.10 #fix, make a list
ntp2: 192.168.11.11
ntp:
- 192.168.11.10
- 192.168.11.11
snmp:
traphost: 10.102.2.100

Expand Down
6 changes: 4 additions & 2 deletions snippets/misc
Expand Up @@ -5,8 +5,10 @@ snmp-server host {{ config['snmp']['traphost'] }} traps version 2c public udp-po
{# snmp-server community -- group network-operator #}
{# snmp-server community -- use-acl acl_for_ro_comm #}

ntp server {{ config['ntp1'] }} prefer use-vrf management
ntp server {{ config['ntp2'] }} use-vrf management
{$ for ntpserver in config['ntp'] $}
ntp server {{ ntpserver }} use-vrf management
{% endfor %}
{# TODO: Need to find a way to insert "prefer" keyword #}
ntp source-interface mgmt0

vrf context management
Expand Down

0 comments on commit f8dbcc8

Please sign in to comment.