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