summaryrefslogtreecommitdiff
path: root/interface-templates/ip/ospf/priority/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'interface-templates/ip/ospf/priority/node.def')
-rw-r--r--interface-templates/ip/ospf/priority/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-templates/ip/ospf/priority/node.def b/interface-templates/ip/ospf/priority/node.def
new file mode 100644
index 00000000..152cff9a
--- /dev/null
+++ b/interface-templates/ip/ospf/priority/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: Set router priority
+default: 1
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 255; "Must be between 0-255"
+update:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "ip ospf priority $VAR(@)"
+delete:vyatta-vtysh -c "configure terminal" -c "interface $IFNAME" -c "no ip ospf priority "
+comp_help: possible completions:
+ <0-255> Priority (default 1)