diff options
Diffstat (limited to 'templates/interfaces')
6 files changed, 49 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.def new file mode 100644 index 00000000..ac984fb4 --- /dev/null +++ b/templates/interfaces/ethernet/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/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/templates/interfaces/ethernet/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/ethernet/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/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def new file mode 100644 index 00000000..7d644d6f --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/key-id/node.tag/node.def @@ -0,0 +1 @@ +help: "Configure md5 key" diff --git a/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/md5/node.def new file mode 100644 index 00000000..50fca5ea --- /dev/null +++ b/templates/interfaces/ethernet/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/ethernet/node.tag/ip/ospf/authentication/node.def b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/node.def new file mode 100644 index 00000000..3ae4a65e --- /dev/null +++ b/templates/interfaces/ethernet/node.tag/ip/ospf/authentication/node.def @@ -0,0 +1,2 @@ +help: "Configure OSPF interface authentication" + 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 new file mode 100644 index 00000000..834f581b --- /dev/null +++ b/templates/interfaces/ethernet/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 \"; " + |