diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2007-12-10 18:07:41 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2007-12-10 18:07:41 -0800 |
commit | 6a58c1175a40d3afcb3ca7164852465011cfd544 (patch) | |
tree | 67cad89060dcffc699629d3af70f128682656321 /templates/interfaces | |
parent | 8eb36ff99677255cc337c55f2a4ba061d09edf49 (diff) | |
download | vyatta-cfg-quagga-6a58c1175a40d3afcb3ca7164852465011cfd544.tar.gz vyatta-cfg-quagga-6a58c1175a40d3afcb3ca7164852465011cfd544.zip |
Redo RIP cli to remove interface/network requirement.
Diffstat (limited to 'templates/interfaces')
16 files changed, 78 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.def new file mode 100644 index 00000000..279283e3 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.def @@ -0,0 +1,5 @@ +tag: +type: u32 +help: "MD5 authentication key ID" +syntax: $(@) >= 1 && $(@) <= 255; "ID must be between 1 and 255" + diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/node.def new file mode 100644 index 00000000..8b0f3125 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/node.def @@ -0,0 +1 @@ +help: "Authentication password" diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/password/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/password/node.def new file mode 100644 index 00000000..ada3abab --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/md5/node.tag/password/node.def @@ -0,0 +1,8 @@ +type: txt +help: "Authentication password" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../../@)\" \ + -c \"ip rip authentication mode md5\" -c \"ip rip authentication key-chain $(../../../../../@)-rip\" \ + -c \"key chain $(../../../../../@)-rip\" -c \"key $(../@)\" -c \"key-string $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../../@)\" \ + -c \"no ip rip authentication mode md5\" -c \"no ip rip authentication key-chain $(../../../../../@)-rip\" \ + -c \"no key chain $(../../../../../@)-rip\" " diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/authentication/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/node.def new file mode 100644 index 00000000..cd07a983 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/node.def @@ -0,0 +1 @@ +help: "Authentication method" diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/authentication/simple-password/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/simple-password/node.def new file mode 100644 index 00000000..5b062697 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/authentication/simple-password/node.def @@ -0,0 +1,6 @@ +type: txt +help: "Simple password authentication key" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../@)\" \ + -c \"ip rip authentication mode text\" -c \"ip rip authentication string $(@)\"; " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../@)\" \ + -c \"no ip rip authentication mode\" -c \"no ip rip authentication string $(@)\"; " diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/node.def new file mode 100644 index 00000000..ad32ea53 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/node.def @@ -0,0 +1 @@ +help: "RIP interface commands" diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/node.def new file mode 100644 index 00000000..16dc4330 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/node.def @@ -0,0 +1,9 @@ +help: "Enable split horizon on this interface" +update: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../@)\" \ + -c \"ip rip split-horizon\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../@)\" \ + -c \"no ip rip split-horizon\" " + + diff --git a/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def new file mode 100644 index 00000000..912afee3 --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/rip/split-horizon/poison-reverse/node.def @@ -0,0 +1,8 @@ +help: "With poison reverse" +create: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../../@)\" \ + -c \"ip rip split-horizon poisoned-reverse\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../../@)\" \ + -c \"no ip rip split-horizon\" -c \"ip rip split-horizon\" " + diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.def new file mode 100644 index 00000000..279283e3 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.def @@ -0,0 +1,5 @@ +tag: +type: u32 +help: "MD5 authentication key ID" +syntax: $(@) >= 1 && $(@) <= 255; "ID must be between 1 and 255" + diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/node.def new file mode 100644 index 00000000..8b0f3125 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/node.def @@ -0,0 +1 @@ +help: "Authentication password" diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def new file mode 100644 index 00000000..ada3abab --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/md5/node.tag/password/node.def @@ -0,0 +1,8 @@ +type: txt +help: "Authentication password" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../../@)\" \ + -c \"ip rip authentication mode md5\" -c \"ip rip authentication key-chain $(../../../../../@)-rip\" \ + -c \"key chain $(../../../../../@)-rip\" -c \"key $(../@)\" -c \"key-string $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../../@)\" \ + -c \"no ip rip authentication mode md5\" -c \"no ip rip authentication key-chain $(../../../../../@)-rip\" \ + -c \"no key chain $(../../../../../@)-rip\" " diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/node.def new file mode 100644 index 00000000..cd07a983 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/node.def @@ -0,0 +1 @@ +help: "Authentication method" diff --git a/templates/interfaces/loopback/node.tag/ip/rip/authentication/simple-password/node.def b/templates/interfaces/loopback/node.tag/ip/rip/authentication/simple-password/node.def new file mode 100644 index 00000000..5b062697 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/authentication/simple-password/node.def @@ -0,0 +1,6 @@ +type: txt +help: "Simple password authentication key" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../@)\" \ + -c \"ip rip authentication mode text\" -c \"ip rip authentication string $(@)\"; " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"interface $(../../../../@)\" \ + -c \"no ip rip authentication mode\" -c \"no ip rip authentication string $(@)\"; " diff --git a/templates/interfaces/loopback/node.tag/ip/rip/node.def b/templates/interfaces/loopback/node.tag/ip/rip/node.def new file mode 100644 index 00000000..ad32ea53 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/node.def @@ -0,0 +1 @@ +help: "RIP interface commands" diff --git a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/node.def b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/node.def new file mode 100644 index 00000000..16dc4330 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/node.def @@ -0,0 +1,9 @@ +help: "Enable split horizon on this interface" +update: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../@)\" \ + -c \"ip rip split-horizon\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../@)\" \ + -c \"no ip rip split-horizon\" " + + diff --git a/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def new file mode 100644 index 00000000..912afee3 --- /dev/null +++ b/templates/interfaces/loopback/node.tag/ip/rip/split-horizon/poison-reverse/node.def @@ -0,0 +1,8 @@ +help: "With poison reverse" +create: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../../@)\" \ + -c \"ip rip split-horizon poisoned-reverse\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" \ + -c \"interface $(../../../../@)\" \ + -c \"no ip rip split-horizon\" -c \"ip rip split-horizon\" " + |