summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-09-12 00:03:05 +0200
committerDaniil Baturin <daniil@baturin.org>2019-09-12 00:03:05 +0200
commit3809a2f7912545d4975b9ed81952f811f6eb4ea4 (patch)
tree640a59a8e91658f66b2f4f652863e619abb32cb5 /templates
parent5f5e8973dd6e76d8446a5eed7206ffb8c5dc6dbb (diff)
downloadvyatta-cfg-quagga-3809a2f7912545d4975b9ed81952f811f6eb4ea4.tar.gz
vyatta-cfg-quagga-3809a2f7912545d4975b9ed81952f811f6eb4ea4.zip
T1642: make the iBGP vs eBGP check in "remove-private-as" work.
I have no idea why original expression doesn't work.
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/node.def2
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def3
2 files changed, 2 insertions, 3 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/node.def
index 82dde319..b378b2f4 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/node.def
@@ -1,2 +1,2 @@
help: Remove private AS numbers from AS path in outbound IPv4-route updates
-commit:expression: $VAR(../../../remote-as/@) != $VAR(../../../../@); "you can't set remove-private-as for an iBGP peer"
+commit:expression: exec "test $VAR(../../../remote-as/@) -ne $VAR(../../../../@)"; "you can't set remove-private-as for an iBGP peer"
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def
index c1b03f4f..9b73cfdf 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/node.def
@@ -1,3 +1,2 @@
help: Remove private AS numbers from AS path in outbound route updates
-commit:expression: $VAR(../../../remote-as/@) != $VAR(../../../../@); "you can't set remove-private-as for an iBGP peer"
-
+commit:expression: exec "test $VAR(../../../remote-as/@) -ne $VAR(../../../../@)"; "you can't set remove-private-as for an iBGP peer"