summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp
diff options
context:
space:
mode:
authorArthur Xiong <arthur@vyatta.com>2008-03-07 15:43:39 -0800
committerArthur Xiong <arthur@vyatta.com>2008-03-07 15:43:39 -0800
commitbfc1372b8255eb4a7179ad87dcc2e7782bcb9cb5 (patch)
treed23ba08f3ce16e43dee9bc83250c9415b290d766 /templates/protocols/bgp
parentf38f4f89c5dc66d021938b7a63051c5e601f6eb3 (diff)
downloadvyatta-cfg-quagga-bfc1372b8255eb4a7179ad87dcc2e7782bcb9cb5.tar.gz
vyatta-cfg-quagga-bfc1372b8255eb4a7179ad87dcc2e7782bcb9cb5.zip
1. Fix bug 2754 - changed node type from txt to ipv4, since in the routing engine, "neighbor A.B.C.D update-source W.X.Y.Z" always works, and there is no ip address saved under interface hence "neighbor A.B.C.D update-source INTERFACE_NAME" doesn't work.
2. Removed the last $VAR(@) from the "delete:" part, since the routing engine treats "no neighbor A.B.C.D update-source W.X.Y.Z" as "Unknown command", but "no neighbor A.B.C.D update-source" does work and accomplishes the deletion correctly.
Diffstat (limited to 'templates/protocols/bgp')
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/update-source/node.def6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/update-source/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/update-source/node.def
index afa51402..f2917508 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/update-source/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/update-source/node.def
@@ -1,4 +1,4 @@
-type: txt
+type: ipv4
help: Source of routing updates
syntax:expression: exec " \
if [ -z \"`ip addr | grep $VAR(@) `\" ]; then \
@@ -6,7 +6,7 @@ syntax:expression: exec " \
exit 1 ; \
fi ; "
commit:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $VAR(../../@) --neighbor $VAR(../@)"
-update:expression: "if [ -n \"$VAR(../remote-as/@)\" ]; then \
+exupdate:expression: "if [ -n \"$VAR(../remote-as/@)\" ]; then \
peer=\"remote-as $VAR(../remote-as/@)\"; \
else \
peer=\"peer-group $VAR(../peer-group/@)\"; \
@@ -15,4 +15,4 @@ update:expression: "if [ -n \"$VAR(../remote-as/@)\" ]; then \
-c \"neighbor $VAR(../@) $peer\" \
-c \"neighbor $VAR(../@) update-source $VAR(@)\" "
delete:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -noerr -c \"configure terminal\" -c \"router bgp $VAR(../../@)\" \
- -c \"no neighbor $VAR(../@) update-source $VAR(@)\" "
+ -c \"no neighbor $VAR(../@) update-source\" "