File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -216,13 +216,13 @@ EOF
216216 # ----- make BRE pattern for Grout -------------------------------------
217217 # Expected output from grcli route show
218218 #
219- # VRF DESTINATION NEXT_HOP
220- # 0 192.168.0.0/16 type=SRv6 id=8 iface=geydsm1 vrf=0 origin=zebra h.encap fd00:202::2
219+ # VRF DESTINATION ORIGIN NEXT_HOP
220+ # 0 192.168.0.0/16 zebra_static type=SRv6 id=6 iface=p1 vrf=0 ...
221221 local sid_regex=" ${sids[0]} "
222222 for (( i= 1 ; i< ${# sids[@]} ; i++ )) ; do
223223 sid_regex+=" [[:space:]]+${sids[i]} "
224224 done
225- local grep_pattern=" \\ <${prefix} [[:space:]]+type=SRv6\\ >.*${sid_regex} "
225+ local grep_pattern=" \\ <${prefix} [[:space:]]+zebra_static[[:space:]]+ type=SRv6\\ >.*${sid_regex} "
226226
227227 # ----- wait until Grout shows it --------------------------------------
228228 while ! grcli route show | grep -qE " ${grep_pattern} " ; do
You can’t perform that action at this time.
0 commit comments