Skip to content

Commit

Permalink
IOS: parse more IP SLA constructs (#6400)
Browse files Browse the repository at this point in the history
Keeps the parser in context. Similar to #6382, but for IOS
  • Loading branch information
progwriter committed Nov 6, 2020
1 parent d509ad4 commit 089d8da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,7 @@ ip_sla_null
| TIMEOUT
| TOS
| UDP_JITTER
| VRF
) null_rest_of_line
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ ip sla 10
samples-of-history-kept 10
history filter failures
udp-jitter 130.59.38.105 5000
vrf VRF1
!
ip sla timeout 100
!
Expand Down
5 changes: 5 additions & 0 deletions tests/parsing-tests/unit-tests.ref
Original file line number Diff line number Diff line change
Expand Up @@ -26415,6 +26415,11 @@
" (null_rest_of_line",
" IP_ADDRESS:'130.59.38.105'",
" DEC:'5000'",
" NEWLINE:'\\n'))",
" (ip_sla_null",
" VRF:'vrf'",
" (null_rest_of_line",
" VARIABLE:'VRF1'",
" NEWLINE:'\\n'))))",
" (stanza",
" (s_ip_sla",
Expand Down

0 comments on commit 089d8da

Please sign in to comment.