summaryrefslogtreecommitdiff
path: root/templates/protocols/rip/interface/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/rip/interface/node.def')
-rw-r--r--templates/protocols/rip/interface/node.def11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/protocols/rip/interface/node.def b/templates/protocols/rip/interface/node.def
new file mode 100644
index 00000000..1c493597
--- /dev/null
+++ b/templates/protocols/rip/interface/node.def
@@ -0,0 +1,11 @@
+tag:
+type: txt
+help: "Interface name"
+syntax: exec " \
+ if [ -z \"`ip addr | grep $(@) `\" ]; then \
+ echo ethernet interface $(@) doesn\\'t exist on this system ; \
+ exit 1 ; \
+ fi ; "
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"router rip\" -c \"network $(@)\" "
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router rip\" -c \"network $(@)\" "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router rip\" -c \"no network $(@)\" "