summaryrefslogtreecommitdiff
path: root/templates/protocols/rip/default-metric
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/rip/default-metric')
-rw-r--r--templates/protocols/rip/default-metric/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/protocols/rip/default-metric/node.def b/templates/protocols/rip/default-metric/node.def
new file mode 100644
index 00000000..8151814e
--- /dev/null
+++ b/templates/protocols/rip/default-metric/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: "Set metric of redistributed routes"
+syntax: $(@) >= 1 && $(@) <= 16; "Must be between 1-16"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router rip\" \
+ -c \"default-metric $(@) \"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router rip\" \
+ -c \"no default-metric $(@) \"; "
+#comp_help <1-16> Default metric