# HG changeset patch # User Tomas Zeman # Date 1345543178 -7200 # Node ID 7174a64140695b9f1a0dc34609ac1f608d044dfb # Parent 149c2265de244f2f01fd5b93d55aa15feb49ae92 oneaccess.gramar: sntp parsing diff -r 149c2265de24 -r 7174a6414069 oneaccess.gramar --- a/oneaccess.gramar Tue Aug 21 11:33:08 2012 +0200 +++ b/oneaccess.gramar Tue Aug 21 11:59:38 2012 +0200 @@ -59,6 +59,7 @@ line: s_controller | s_interface | l_vrf + | l_sntp | indent comment | indent cmdline | indent emptyline @@ -203,3 +204,16 @@ # vrf l_vrf: "0" "ip" "vrf" keyword eol { $::res->{"ip-vrf"} = $item{keyword} } + +# sntp +sntp_iface: iface_type iface_num + { + $arg{ctx}->{interface} = { + type => $item{iface_type}, + num => $item{iface_num} + }; + } + | "" + +l_sntp: "0" "sntp" "server" ip sntp_iface[ctx => ctx('sntp-server', $item{ip})] eol +