From b83bab57ebbe9f295d517301ebd96402c836f25e Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sat, 10 Nov 2007 19:58:46 -0800 Subject: Add more OSPF configuration. --- templates/protocols/ospf/neighbor/node.def | 7 +++++++ templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def | 7 +++++++ templates/protocols/ospf/neighbor/node.tag/priority/node.def | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 templates/protocols/ospf/neighbor/node.def create mode 100644 templates/protocols/ospf/neighbor/node.tag/poll-interval/node.def create mode 100644 templates/protocols/ospf/neighbor/node.tag/priority/node.def (limited to 'templates/protocols/ospf/neighbor') 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 $(@)\"; " -- cgit v1.2.3