From 1a581f8b9f92813cc3f108424e0bc1cea32a0eef Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 7 Nov 2021 16:06:31 +0100 Subject: route-map: T3974: use warning over error when "match interface" is non-existent FRR can handle the route-map when the match interface does not exist. (cherry picked from commit 2a8370107bf53b8b82a9eae05e618cff70b90838) --- .../policy/route-map/node.tag/rule/node.tag/match/interface/node.def | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def index f590c32f..b936b00f 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def @@ -5,8 +5,7 @@ val_help: Interface name commit:expression: $VAR(../../action/) != ""; "You must specify an action" commit:expression: exec " \ if [ -z \"`ip addr | grep $VAR(@) `\" ]; then \ - echo interface $VAR(@) doesn\\'t exist on this system ; \ - exit 1 ; \ + echo Warning: interface $VAR(@) doesn\\'t exist on this system; \ fi ; " update: vtysh -c "configure terminal" \ -- cgit v1.2.3