Skip to content

Commit da44d02

Browse files
committed
smoke: fix srv6 frr test
The grcli route output has changed. Adapt the grep expression accordingly. Fixes: a778e5c ("cli: display route origin") Signed-off-by: Robin Jarry <[email protected]>
1 parent 99379c4 commit da44d02

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

smoke/_init_frr.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)