summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-11-29 12:43:15 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-11-29 12:43:15 -0800
commit2446b9e66e42bc75d11e0e4502ff7edf34525a8b (patch)
treed0542a06d782c828ca1ce1829ff4f40282c1d043 /templates/interfaces
parent67a64a925231ac24036bdad5916e175bf1bb5dbf (diff)
downloadvyatta-cfg-quagga-2446b9e66e42bc75d11e0e4502ff7edf34525a8b.tar.gz
vyatta-cfg-quagga-2446b9e66e42bc75d11e0e4502ff7edf34525a8b.zip
Add OSPF authentication cli to loopback interface.
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/ospf/authentication/simple/node.def4
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def22
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def2
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def1
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def10
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/node.def2
-rw-r--r--templates/interfaces/loopback/node.tag/ip/ospf/authentication/simple/node.def12
7 files changed, 51 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/simple/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/simple/node.def
index 834f581b..28d1b2f2 100644
--- a/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/simple/node.def
+++ b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/simple/node.def
@@ -1,12 +1,12 @@
type: txt
help: "Configure simple password"
update: "/usr/bin/vtysh -c \"configure terminal\" \
- -c \"interface $(../../../@) \" \
+ -c \"interface $(../../../../@) \" \
-c \"no ip ospf authentication \" \
-c \"ip ospf authentication \" \
-c \"ip ospf authentication-key $(@) \"; "
delete: "/usr/bin/vtysh -c \"configure terminal\" \
- -c \"interface $(../../../@) \" \
+ -c \"interface $(../../../../@) \" \
-c \"no ip ospf authentication \" \
-c \"no ip ospf authentication-key \"; "
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def
new file mode 100644
index 00000000..ac984fb4
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.def
@@ -0,0 +1,22 @@
+tag:
+type: u32
+help: "Configure MD5 key id"
+syntax: $(@) >= 1 && $(@) <= 255; "ID must be between (1-255)"
+commit: $(md5-key/) != ""; "must add the md5-key for key-id $(@)"
+delete: "touch /tmp/ospf-md5.\\$PPID"
+end: "if [ -f \"/tmp/ospf-md5.\\$PPID\" ]; then \
+ /usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../../@) \" \
+ -c \"no ip ospf message-digest-key $(@)\"; \
+ rm /tmp/ospf-md5.\\$PPID; \
+ else \
+ /usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../../@) \" \
+ -c \"ip ospf message-digest-key $(@) md5 $(md5-key/@)\"; \
+ fi; "
+
+
+
+
+
+
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
new file mode 100644
index 00000000..54bbd8f7
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: "Configure md5 key"
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def
new file mode 100644
index 00000000..7d644d6f
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def
@@ -0,0 +1 @@
+help: "Configure md5 key"
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def
new file mode 100644
index 00000000..50fca5ea
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/md5/node.def
@@ -0,0 +1,10 @@
+help: "Configure MD5 key id"
+update: "/usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../@) \" \
+ -c \"no ip ospf authentication \" \
+ -c \"ip ospf authentication message-digest\"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../@) \" \
+ -c \"no ip ospf authentication \"; "
+
+
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/node.def
new file mode 100644
index 00000000..3ae4a65e
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/node.def
@@ -0,0 +1,2 @@
+help: "Configure OSPF interface authentication"
+
diff --git a/templates/interfaces/loopback/node.tag/ip/ospf/authentication/simple/node.def b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/simple/node.def
new file mode 100644
index 00000000..28d1b2f2
--- /dev/null
+++ b/templates/interfaces/loopback/node.tag/ip/ospf/authentication/simple/node.def
@@ -0,0 +1,12 @@
+type: txt
+help: "Configure simple password"
+update: "/usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../@) \" \
+ -c \"no ip ospf authentication \" \
+ -c \"ip ospf authentication \" \
+ -c \"ip ospf authentication-key $(@) \"; "
+delete: "/usr/bin/vtysh -c \"configure terminal\" \
+ -c \"interface $(../../../../@) \" \
+ -c \"no ip ospf authentication \" \
+ -c \"no ip ospf authentication-key \"; "
+