summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/neighbor
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/ospf/neighbor')
-rw-r--r--templates/protocols/ospf/neighbor/node.def7
-rw-r--r--templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def7
-rw-r--r--templates/protocols/ospf/neighbor/node.tag/priority/node.def7
3 files changed, 21 insertions, 0 deletions
diff --git a/templates/protocols/ospf/neighbor/node.def b/templates/protocols/ospf/neighbor/node.def
new file mode 100644
index 00000000..4c32123a
--- /dev/null
+++ b/templates/protocols/ospf/neighbor/node.def
@@ -0,0 +1,7 @@
+tag:
+type: ipv4
+help: "Neighbor IP address"
+create: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"neighbor $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no neighbor $(@)\"; "
diff --git a/templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def b/templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def
new file mode 100644
index 00000000..f0422442
--- /dev/null
+++ b/templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def
@@ -0,0 +1,7 @@
+type: u32
+help: "Dead neighbor polling interval"
+syntax: $(@) >= 1 && $(@) <= 65535; "Must be between 1-65535 seconds"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"neighbor $(../@) poll-interval $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no neighbor $(../@) poll-interval $(@)\"; "
diff --git a/templates/protocols/ospf/neighbor/node.tag/priority/node.def b/templates/protocols/ospf/neighbor/node.tag/priority/node.def
new file mode 100644
index 00000000..a62838a3
--- /dev/null
+++ b/templates/protocols/ospf/neighbor/node.tag/priority/node.def
@@ -0,0 +1,7 @@
+type: u32
+help: "Neighbor priority in seconds"
+syntax: $(@) >= 0 && $(@) <= 255; "Priority must be between 0-255"
+update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"neighbor $(../@) priority $(@)\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router ospf\" \
+ -c \"no neighbor $(../@) priority $(@)\"; "