From e9a79a249cec69fc178098d2f75db9389068510a Mon Sep 17 00:00:00 2001
From: An-Cheng Huang <ancheng@vyatta.com>
Date: Tue, 25 Sep 2007 15:55:26 -0700
Subject: initial import (from eureka /cli) plus new build system.

---
 templates/system/gateway-address/node.def | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 templates/system/gateway-address/node.def

(limited to 'templates/system/gateway-address/node.def')

diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def
new file mode 100644
index 0000000..c82e3fe
--- /dev/null
+++ b/templates/system/gateway-address/node.def
@@ -0,0 +1,17 @@
+type: txt
+help: "Configure default gateway"
+create: "sh -c \"echo \
+'static_routes/static_routes/0.1/add_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=$(@)&metric:u32=1' \
+>> /tmp/cli.log && \
+/opt/vyatta/libexec/xorp/call_xrl 'static_routes/static_routes/0.1/add_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=$(@)&metric:u32=1' >> /tmp/cli.log ; \
+echo \\$? >> /tmp/cli.log\" "
+update: "sh -c \"echo \
+'static_routes/static_routes/0.1/replace_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=$(@)&metric:u32=1' \
+>> /tmp/cli.log && \
+/opt/vyatta/libexec/xorp/call_xrl 'static_routes/static_routes/0.1/replace_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=$(@)&metric:u32=1' >> /tmp/cli.log ; \
+echo \\$? >> /tmp/cli.log\" "
+delete: "sh -c \"echo \
+'static_routes/static_routes/0.1/delete_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=0.0.0.0' \
+>> /tmp/cli.log && \
+/opt/vyatta/libexec/xorp/call_xrl 'static_routes/static_routes/0.1/delete_route4?unicast:bool=true&multicast:bool=false&network:ipv4net=0.0.0.0/0&nexthop:ipv4=0.0.0.0' >> /tmp/cli.log ; \
+echo \\$? >> /tmp/cli.log\" "
-- 
cgit v1.2.3

