summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/export/node.def10
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/import/node.def20
2 files changed, 15 insertions, 15 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/export/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/export/node.def
index ac48274e..20fe9b2b 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/export/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/export/node.def
@@ -18,11 +18,11 @@ update: if [ -n "$VAR(../../remote-as/@)" ]; then
fi;
if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv6 $VAR(../../@)
then
- vyatta-vtysh -c "configure terminal" \
- -c "router bgp $VAR(../../../@)" \
- -c "address-family ipv6" \
- -c "neighbor $VAR(../../@) $peer" \
- -c "address-family ipv6" \
+ vyatta-vtysh -c "configure terminal" \
+ -c "router bgp $VAR(../../../@)" \
+ -c "neighbor $VAR(../../@) $peer" \
+ -c "address-family ipv6" \
+ -c "neighbor $VAR(../../@) activate" \
-c "neighbor $VAR(../../@) route-map $VAR(@) out"
else
vyatta-vtysh -c "configure terminal" \
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/import/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/import/node.def
index 69c6e055..10157986 100644
--- a/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/import/node.def
+++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/route-map/import/node.def
@@ -11,25 +11,27 @@ commit:expression: $VAR(../../peer-group/) == ""; "protocols bgp $VAR(../../../@
commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $VAR(@)\" ";"protocols bgp $VAR(../../../@) neighbor $VAR(../../@) import: route-map $VAR(@) doesn't exist"
-update: if [ -n "$VAR(../../remote-as/@)" ]; then
+update: if [ -n "$VAR(../../remote-as/@)" ];
+ then
peer="remote-as $VAR(../../remote-as/@)";
else
peer="peer-group $VAR(../../peer-group/@)";
fi;
+
if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv6 $VAR(../../@)
then
- vyatta-vtysh -c "configure terminal" \
- -c "router bgp $VAR(../../../@)" \
- -c "address-family ipv6" \
- -c "neighbor $VAR(../../@) $peer" \
- -c "address-family ipv6" \
+ vyatta-vtysh -c "configure terminal" \
+ -c "router bgp $VAR(../../../@)" \
+ -c "neighbor $VAR(../../@) $peer" \
+ -c "address-family ipv6" \
+ -c "neighbor $VAR(../../@) activate" \
-c "neighbor $VAR(../../@) route-map $VAR(@) in"
else
vyatta-vtysh -c "configure terminal" \
-c "router bgp $VAR(../../../@)" \
-c "neighbor $VAR(../../@) $peer" \
-c "neighbor $VAR(../../@) route-map $VAR(@) in"
- fi
+ fi;
delete: if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv6 $VAR(../../@)
then
@@ -41,9 +43,7 @@ delete: if /opt/vyatta/sbin/vyatta-validate-type.pl -q ipv6 $VAR(../../@)
vyatta-vtysh -c "configure terminal" \
-c "router bgp $VAR(../../../@)" \
-c "no neighbor $VAR(../../@) route-map $VAR(@) in"
- fi
-
-
+ fi;
comp_help: possible completions:
<txt> route-map name