From 8454bb0c2c859a919b0b163d505b9d89212bcfd2 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Tue, 29 Jul 2008 15:25:55 -0700 Subject: First pass at gluing ripng cli to quagga. --- .../protocols/ripng/timers/garbage-collection/node.def | 9 +++++++++ templates/protocols/ripng/timers/node.def | 16 ++++++++++++++++ templates/protocols/ripng/timers/timeout/node.def | 9 +++++++++ templates/protocols/ripng/timers/update/node.def | 9 +++++++++ 4 files changed, 43 insertions(+) create mode 100644 templates/protocols/ripng/timers/garbage-collection/node.def create mode 100644 templates/protocols/ripng/timers/node.def create mode 100644 templates/protocols/ripng/timers/timeout/node.def create mode 100644 templates/protocols/ripng/timers/update/node.def (limited to 'templates/protocols/ripng/timers') diff --git a/templates/protocols/ripng/timers/garbage-collection/node.def b/templates/protocols/ripng/timers/garbage-collection/node.def new file mode 100644 index 00000000..c7d3f8ed --- /dev/null +++ b/templates/protocols/ripng/timers/garbage-collection/node.def @@ -0,0 +1,9 @@ +type: u32 +default: 120 +help: Set garbage collection timer + +syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 65535; \ + "Garbage collection timer must be between 0 and 65535" + +comp_help: possible completions: + <0-65535> Garbage colletion time (default 120) diff --git a/templates/protocols/ripng/timers/node.def b/templates/protocols/ripng/timers/node.def new file mode 100644 index 00000000..16f04ff4 --- /dev/null +++ b/templates/protocols/ripng/timers/node.def @@ -0,0 +1,16 @@ +help: Set RIPng timer values + +delete: touch /tmp/ripng-timers.$PPID + +end: ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" \ + -c "router ripng" \ + -c "no timers basic"; \ + if [ -f "/tmp/ripng-timers.$PPID" ]; then + rm -rf /tmp/ripng-timers.$PPID; + else + ${vyatta_sbindir}/vyatta-vtysh.pl -c "configure terminal" \ + -c "router ripng" \ + -c "timers basic $VAR(./update/@) \ + $VAR(./timeout/@) \ + $VAR(./garbage-collection/@)" + fi; diff --git a/templates/protocols/ripng/timers/timeout/node.def b/templates/protocols/ripng/timers/timeout/node.def new file mode 100644 index 00000000..11efdc0b --- /dev/null +++ b/templates/protocols/ripng/timers/timeout/node.def @@ -0,0 +1,9 @@ +type: u32 +default: 180 +help: Set routing information timeout timer + +syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 65535; \ + "Timeout timer must be between 0 and 65535" + +comp_help: possible completions: + <0-65535> Routing information timeout timer (default 180) diff --git a/templates/protocols/ripng/timers/update/node.def b/templates/protocols/ripng/timers/update/node.def new file mode 100644 index 00000000..1f06eb5b --- /dev/null +++ b/templates/protocols/ripng/timers/update/node.def @@ -0,0 +1,9 @@ +type: u32 +default: 30 +help: Set routing table update timer + +syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 65535; \ + "Update timer must be between 0 and 65535" + +comp_help: possible completions: + <0-65535> Routing table update timer in seconds (default 30) -- cgit v1.2.3