Skip to content

Commit

Permalink
fix static route validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus authored and Markus committed Nov 12, 2023
1 parent 3f52b9b commit b02d363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ else
fi

VALIDATE_TRANSFER_ROUTE=$($WR show protocols static interface-route $TRANSFER_NETWORK next-hop-interface)
if [[ ! $(echo $VALIDATE_TRANSFER_ROUTE | grep -i "next-hop-interface ${VTI_BIND}" | head -n1) ]]
if [[ ! $(echo $VALIDATE_TRANSFER_ROUTE | grep -i "next-hop-interface ${VTI_BIND}") ]]
then
Log "Static route ${TRANSFER_NETWORK} not found. Create."
Command set protocols static interface-route $TRANSFER_NETWORK next-hop-interface $VTI_BIND
Expand Down

0 comments on commit b02d363

Please sign in to comment.