diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-05-30 11:06:18 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-05-30 11:06:18 +0200 |
commit | 8dc9ac88c2ab71a71ab6f532339cd4ab2b321a29 (patch) | |
tree | 5ea797d64950d79a38449445ef0a0377195e27b2 /templates/protocols/ospf/passive-interface/node.def | |
parent | 34a93168fa7cef6a3b8ae481a86c2fc46ae9630d (diff) | |
download | vyatta-cfg-quagga-8dc9ac88c2ab71a71ab6f532339cd4ab2b321a29.tar.gz vyatta-cfg-quagga-8dc9ac88c2ab71a71ab6f532339cd4ab2b321a29.zip |
T1419: multiple passive-interfaces can't be deleted in one commit
Reproduce with:
set protocols ospf passive-interface default
set protocols ospf passive-interface-exclude eth1
set protocols ospf passive-interface-exclude eth2.5
commit
delete protocols ospf passive-interface default
delete protocols ospf passive-interface-exclude eth1
delete protocols ospf passive-interface-exclude eth2.5
commit
Results in
[ protocols ospf passive-interface default ]
sh: line 8: [: eth1: unary operator expected
Diffstat (limited to 'templates/protocols/ospf/passive-interface/node.def')
-rw-r--r-- | templates/protocols/ospf/passive-interface/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/protocols/ospf/passive-interface/node.def b/templates/protocols/ospf/passive-interface/node.def index f73f9166..ed5d17cb 100644 --- a/templates/protocols/ospf/passive-interface/node.def +++ b/templates/protocols/ospf/passive-interface/node.def @@ -28,7 +28,7 @@ delete: if [ -z $VAR(@) ] else if [ "$VAR(@)" == "default" ] then - if [ $VAR(../passive-interface-exclude/@) ] + if [ ! -z "$VAR(../passive-interface-exclude/@)" ] then echo "Error: delete passive-interface-exclude before deleting passive-interface default"; exit 1; |