From 8f99d7ffcc23ec90950b2c959ed74816553f53c7 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Fri, 11 Apr 2008 18:00:17 -0700 Subject: add 2 lines acidentally deleted in last commit for attribute-unchanged --- .../bgp/node.tag/neighbor/node.tag/attribute-unchanged/node.def | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/attribute-unchanged/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/attribute-unchanged/node.def index a0de96f2..229827da 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/attribute-unchanged/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/attribute-unchanged/node.def @@ -20,6 +20,8 @@ end: ${vyatta_sbindir}/vyatta-vtysh.pl -noerr -c "configure terminal" -c "route if [ $? -eq 0 ]; then cond="$cond next-hop " ; fi ; + if [ -n "$VAR(../remote-as/@)" ]; then + peer="remote-as $VAR(../remote-as/@)"; else peer="peer-group $VAR(../peer-group/@)"; fi; -- cgit v1.2.3