diff options
Diffstat (limited to 'templates/service/snmp/v3/trap-target')
14 files changed, 0 insertions, 80 deletions
diff --git a/templates/service/snmp/v3/trap-target/node.def b/templates/service/snmp/v3/trap-target/node.def deleted file mode 100644 index 6c2717a8..00000000 --- a/templates/service/snmp/v3/trap-target/node.def +++ /dev/null @@ -1,14 +0,0 @@ -tag: -type: txt -help: Defines SNMP target for inform or traps for IP -syntax:expression: exec "/opt/vyatta/sbin/valid_address $VAR(@)/20" -commit:expression: $VAR(type/) != ""; "must specify type" -commit:expression: $VAR(auth/) != ""; "must specify auth" -commit:expression: $VAR(protocol/) != ""; "must specify protocol" -commit:expression: $VAR(user/) != ""; "must specify user" -commit:expression: $VAR(port/) != ""; "must specify port" -commit:expression: $VAR(type/@) == "inform" || ( $VAR(type/@) == "trap" && $VAR(engineid/) != "" ); \ - "must specify engineid if type is 'trap'" - -val_help: <x.x.x.x>; IP address of trap target -val_help: <h:h:h:h:h:h:h:h>; IPv6 address of trap target
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/auth/encrypted-key/node.def b/templates/service/snmp/v3/trap-target/node.tag/auth/encrypted-key/node.def deleted file mode 100644 index 2365b055..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/auth/encrypted-key/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Defines the encrypted password for authentication -syntax:expression: pattern $VAR(@) "^0x[0-9a-f]*$" ; "key must start from '0x' and contain hex digits"
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/auth/node.def b/templates/service/snmp/v3/trap-target/node.tag/auth/node.def deleted file mode 100644 index 5c7df0ef..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/auth/node.def +++ /dev/null @@ -1,4 +0,0 @@ -help: Defines the authentication -commit:expression: $VAR(type/) != "" ; "must specify type" -commit:expression: $VAR(encrypted-key/) != "" || $VAR(plaintext-key/) != "" ; "must specify encrypted-key or plaintext-key" -commit:expression: !($VAR(encrypted-key/) != "" && $VAR(plaintext-key/) != "") ; "must specify only one of encrypted-key and plaintext-key"
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/auth/plaintext-key/node.def b/templates/service/snmp/v3/trap-target/node.tag/auth/plaintext-key/node.def deleted file mode 100644 index 34563e73..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/auth/plaintext-key/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Defines the clear text password for authentication -syntax:expression: pattern $VAR(@) "^.{8,}$" ; "key must contain 8 or more characters" diff --git a/templates/service/snmp/v3/trap-target/node.tag/auth/type/node.def b/templates/service/snmp/v3/trap-target/node.tag/auth/type/node.def deleted file mode 100644 index 5a2ffc52..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/auth/type/node.def +++ /dev/null @@ -1,8 +0,0 @@ -type: txt -default: "md5" -help: Defines the protocol using for authentication -syntax:expression: $VAR(@) in "md5", "sha" -allowed: echo md5 sha - -val_help: md5; Message Digest 5 -val_help: sha; Secure Hash Algorithm
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/engineid/node.def b/templates/service/snmp/v3/trap-target/node.tag/engineid/node.def deleted file mode 100644 index 45d522ea..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/engineid/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Defines the engineID. (needs for trap) -syntax:expression: pattern $VAR(@) "^(0x){0,1}([0-9a-f][0-9a-f]){1,18}$" ; "id must contain from 2 to 36 hex digits"
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/port/node.def b/templates/service/snmp/v3/trap-target/node.tag/port/node.def deleted file mode 100644 index b38cd1e5..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/port/node.def +++ /dev/null @@ -1,7 +0,0 @@ -type: u32 -default: 162 -help: Specifies the TCP/UDP port of a destination for SNMP traps/informs. - -val_help: u32:1-65535; Numeric IP port -syntax:expression: $VAR(@) > 0 && $VAR(@) <= 65535 ; \ - "Port number must be in range 1 to 65535" diff --git a/templates/service/snmp/v3/trap-target/node.tag/privacy/encrypted-key/node.def b/templates/service/snmp/v3/trap-target/node.tag/privacy/encrypted-key/node.def deleted file mode 100644 index 4e762b9f..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/privacy/encrypted-key/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Defines the encrypted key for privacy protocol -syntax:expression: pattern $VAR(@) "^0x[0-9a-f]*$" ; "key must start from '0x' and contain hex digits"
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/privacy/node.def b/templates/service/snmp/v3/trap-target/node.tag/privacy/node.def deleted file mode 100644 index 900cfc9d..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/privacy/node.def +++ /dev/null @@ -1,4 +0,0 @@ -help: Defines the privacy -commit:expression: $VAR(type/) != "" ; "must specify type" -commit:expression: $VAR(encrypted-key/) != "" || $VAR(plaintext-key/) != "" ; "must specify encrypted-key or plaintext-key" -commit:expression: !($VAR(encrypted-key/) != "" && $VAR(plaintext-key/) != "") ; "must specify only one of encrypted-key and plaintext-key" diff --git a/templates/service/snmp/v3/trap-target/node.tag/privacy/plaintext-key/node.def b/templates/service/snmp/v3/trap-target/node.tag/privacy/plaintext-key/node.def deleted file mode 100644 index a2442637..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/privacy/plaintext-key/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: txt -help: Defines the clear text key for privacy protocol -syntax:expression: pattern $VAR(@) "^.{8,}$" ; "key must contain 8 or more characters" diff --git a/templates/service/snmp/v3/trap-target/node.tag/privacy/type/node.def b/templates/service/snmp/v3/trap-target/node.tag/privacy/type/node.def deleted file mode 100644 index bbfd5331..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/privacy/type/node.def +++ /dev/null @@ -1,8 +0,0 @@ -type: txt -default: "des" -help: Defines the protocol for privacy -syntax:expression: $VAR(@) in "des", "aes" -allowed: echo des aes - -val_help: des; Data Encryption Standard -val_help: aes; Advanced Encryption Standard
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/protocol/node.def b/templates/service/snmp/v3/trap-target/node.tag/protocol/node.def deleted file mode 100644 index ce96ca38..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/protocol/node.def +++ /dev/null @@ -1,8 +0,0 @@ -type: txt -default: "udp" -help: Defines protocol for notification between TCP and UDP -syntax:expression: $VAR(@) in "tcp", "udp" -allowed: echo tcp udp - -val_help: tcp; -val_help: udp;
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/type/node.def b/templates/service/snmp/v3/trap-target/node.tag/type/node.def deleted file mode 100644 index f678ae69..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/type/node.def +++ /dev/null @@ -1,8 +0,0 @@ -type: txt -default: "inform" -help: Specifies the type of notification between inform and trap -syntax:expression: $VAR(@) in "inform", "trap" -allowed: echo inform trap - -val_help: inform; -val_help: trap;
\ No newline at end of file diff --git a/templates/service/snmp/v3/trap-target/node.tag/user/node.def b/templates/service/snmp/v3/trap-target/node.tag/user/node.def deleted file mode 100644 index a0ed8cbf..00000000 --- a/templates/service/snmp/v3/trap-target/node.tag/user/node.def +++ /dev/null @@ -1,4 +0,0 @@ -type: txt -help: Defines username for authentication -allowed: list=`cli-shell-api listNodes service snmp v3 user` - echo $list |