summaryrefslogtreecommitdiff
path: root/templates/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols')
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.def8
-rw-r--r--templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def8
2 files changed, 15 insertions, 1 deletions
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.def
index a9a20c44..3f90e757 100644
--- a/templates/protocols/static/route6/node.tag/next-hop/node.def
+++ b/templates/protocols/static/route6/node.tag/next-hop/node.def
@@ -17,8 +17,14 @@ end:
then
DIST="$VAR(./distance/@)"
fi
+
+ if [[ -n "$VAR(./interface/@)" ]]
+ then
+ INTERFACE="$VAR(./interface/@)"
+ fi
+
vyatta-vtysh -c "configure terminal" \
- -c "ipv6 route $VAR(../@) $VAR(@) $DIST";
+ -c "ipv6 route $VAR(../@) $VAR(@) $INTERFACE $DIST";
fi
else
if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \
diff --git a/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def b/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def
new file mode 100644
index 00000000..cfa62570
--- /dev/null
+++ b/templates/protocols/static/route6/node.tag/next-hop/node.tag/interface/node.def
@@ -0,0 +1,8 @@
+type: txt
+
+help: Set the outgoing interface
+
+# show all current interface
+# but syntax accepts any interface since it may exist later (ppp etc)
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
+