diff options
Diffstat (limited to 'interface-templates/ip/ospf/authentication')
5 files changed, 9 insertions, 16 deletions
diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.def index 5ff617e6..bc47e563 100644 --- a/interface-templates/ip/ospf/authentication/md5/key-id/node.def +++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.def @@ -1,13 +1,10 @@ tag: - type: u32 - -help: Set MD5 key id +help: MD5 key id syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "ID must be between (1-255)" +val_help: u32:1-255; MD5 key id commit:expression: $VAR(md5-key/) != ""; \ "Must add the md5-key for key-id $VAR(@)" -comp_help: possible completions: - <1-255> Set the key id diff --git a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def index 97d1f693..4c58f20d 100644 --- a/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def +++ b/interface-templates/ip/ospf/authentication/md5/key-id/node.tag/md5-key/node.def @@ -1,11 +1,7 @@ type: txt - -help: Set md5 key - +help: MD5 key syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,16}$"; "MD5 key must be 16 characters or less" - -comp_help: possible completions: - <text> MD5 Key (16 characters or less) +val_help: MD5 Key (16 characters or less) # If this node is created create: diff --git a/interface-templates/ip/ospf/authentication/md5/node.def b/interface-templates/ip/ospf/authentication/md5/node.def index 1f3c8519..184fa321 100644 --- a/interface-templates/ip/ospf/authentication/md5/node.def +++ b/interface-templates/ip/ospf/authentication/md5/node.def @@ -1,4 +1,4 @@ -help: Set MD5 key id +help: MD5 parameters create: vtysh -c "configure terminal" \ -c "interface $IFNAME" \ diff --git a/interface-templates/ip/ospf/authentication/node.def b/interface-templates/ip/ospf/authentication/node.def index ff352a01..abf04eab 100644 --- a/interface-templates/ip/ospf/authentication/node.def +++ b/interface-templates/ip/ospf/authentication/node.def @@ -1,2 +1,2 @@ -help: Set OSPF interface authentication +help: OSPF interface authentication diff --git a/interface-templates/ip/ospf/authentication/plaintext-password/node.def b/interface-templates/ip/ospf/authentication/plaintext-password/node.def index 41ead9f0..d6b10e35 100644 --- a/interface-templates/ip/ospf/authentication/plaintext-password/node.def +++ b/interface-templates/ip/ospf/authentication/plaintext-password/node.def @@ -1,10 +1,10 @@ type: txt -help: Configure plain text password +help: Plain text password syntax:expression: pattern $VAR(@) "^[^[:space:]]{1,8}$" ; "Password must be 8 characters or less" +val_help: Plain text password (8 characters or less) + update:vtysh -c "configure terminal" -c "interface $IFNAME" \ -c "no ip ospf authentication " -c "ip ospf authentication " \ -c "ip ospf authentication-key $VAR(@)" delete:vtysh -c "configure terminal" -c "interface $IFNAME" \ -c "no ip ospf authentication " -c "no ip ospf authentication-key" -comp_help: possible completions: - <text> Plain text password (8 characters or less) |