--- 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
+