oneaccess.gramar
changeset 38 d925a22bbcf3
parent 37 7174a6414069
child 39 b39ab9900b24
equal deleted inserted replaced
37:7174a6414069 38:d925a22bbcf3
    58 
    58 
    59 line: 		s_controller
    59 line: 		s_controller
    60 		| s_interface
    60 		| s_interface
    61 		| l_vrf
    61 		| l_vrf
    62 		| l_sntp
    62 		| l_sntp
       
    63 		| l_syslog
    63 		| indent comment 
    64 		| indent comment 
    64 		| indent cmdline 
    65 		| indent cmdline 
    65 		| indent emptyline
    66 		| indent emptyline
    66 		| <error>
    67 		| <error>
    67 
    68 
   203 
   204 
   204 # vrf
   205 # vrf
   205 l_vrf:		"0" "ip" "vrf" keyword eol
   206 l_vrf:		"0" "ip" "vrf" keyword eol
   206 		{ $::res->{"ip-vrf"} = $item{keyword} }
   207 		{ $::res->{"ip-vrf"} = $item{keyword} }
   207 
   208 
   208 # sntp
   209 via_iface:	iface_type iface_num
   209 sntp_iface:	iface_type iface_num
       
   210 		{
   210 		{
   211 		$arg{ctx}->{interface} = {
   211 		$arg{ctx}->{interface} = {
   212 			type => $item{iface_type},
   212 			type => $item{iface_type},
   213 			num => $item{iface_num}
   213 			num => $item{iface_num}
   214 		};
   214 		};
   215 		}
   215 		}
   216 		| ""
   216 		| ""
   217 
   217 
   218 l_sntp:		"0" "sntp" "server" ip sntp_iface[ctx => ctx('sntp-server', $item{ip})] eol
   218 # sntp
   219 
   219 l_sntp:		"0" "sntp" "server" ip via_iface[ctx => ctx('sntp-server', $item{ip})] eol
       
   220 
       
   221 l_syslog:	"0" "syslog" "server" ip num via_iface[ctx => ctx('syslog', 'server', $item{ip})] eol
       
   222 		| "0" "logging" "syslog" /\w+/ eol
       
   223 		{ $::res->{syslog}->{level} = $item[4]; }
       
   224