summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/gateway-address/node.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/system/gateway-address/node.def b/templates/system/gateway-address/node.def
new file mode 100644
index 00000000..0bb8ed39
--- /dev/null
+++ b/templates/system/gateway-address/node.def
@@ -0,0 +1,5 @@
+type: txt
+help: "Configure default gateway"
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"ip route 0.0.0.0/0 $(@)\" "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"no ip route 0.0.0.0/0 $(@)\" "
+