summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp
diff options
context:
space:
mode:
authorRobert Bays <robert@vyatta.com>2010-07-09 16:15:38 -0700
committerRobert Bays <robert@vyatta.com>2010-07-09 16:15:38 -0700
commitebe0ccaee6c0aa9ac7ea295cf1f42cbff1917c3b (patch)
treeab378cb012587bb761095df427c9524e07d86c48 /templates/protocols/bgp
parent76ab11b901ba09c3f715ad8ef89a3ff8222d7a03 (diff)
downloadvyatta-cfg-quagga-ebe0ccaee6c0aa9ac7ea295cf1f42cbff1917c3b.tar.gz
vyatta-cfg-quagga-ebe0ccaee6c0aa9ac7ea295cf1f42cbff1917c3b.zip
more robust fix for local-as
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.def
index 353a492b..bf0b1361 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.def
@@ -6,4 +6,5 @@ comp_help: possible completions:
syntax:expression: $VAR(@) >=1 && $VAR(@) <= 4294967294; "local-as must be between 1 and 4294967294"
commit:expression: $VAR(@) != $VAR(../../@); "protocols bgp $VAR(../../@) neighbor $VAR(../@): you can't set local-as the same as the router AS"
commit:expression: $VAR(../remote-as/@) != $VAR(../../@); "protocols bgp $VAR(../../@) neighbor $VAR(../@): local-as can't be set on iBGP peers"
-commit:expression: $VAR(../remote-as/@) != $VAR(../../parameters/confederation/peers/@); "protocols bgp $VAR(../../@) neighbor $VAR(../@): local-as can't be set on a confederation peer"
+commit:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-local-as --neighbor $VAR(../@) --as $VAR(../../@)"
+