跳转到内容
Ask AI

snmp

此内容尚不支持你的语言。

AsterNOS Model for snmp-agent

/home/admin/jenkins/workspace/asternos-mgmt_dev_campus/doc/resource/yang/asternos-snmp.yang:137: error: unexpected keyword "description"
module: asternos-snmp
+--rw snmp
+--rw global
| +--rw enabled? boolean
+--rw snmp-communities
| +--rw snmp-community* [community-name]
| +--rw community-name string
| +--rw community-permission? enumeration
+--rw snmp-users
| +--rw snmp-user* [user-name]
| +--rw user-name string
| +--rw authen-mode? enumeration
| +--rw authen-key string
| +--rw privacy-mode? enumeration
| +--rw privacy-key string
| +--rw user-type? enumeration
| +--rw permission? enumeration
+--rw snmp-sources
| +--rw snmp-source* [source-ip udp-port vrf-name]
| +--rw source-ip inet:ip-address-no-zone
| +--rw udp-port uint16
| +--rw vrf-name vrf:vrf-ref
+--rw snmp-traps
| +--rw snmp-trap* [trap-type]
| +--rw trap-type enumeration
| +--rw trap-ip inet:ip-address-no-zone
| +--rw vrf-name? vrf:vrf-ref
| +--rw udp-port? uint16
| +--rw community-name? string
| +--rw user-name string
+--rw system-usage-threshold
+--rw cpu-usage? uint16
+--rw memory-usage? uint16
PathAccess
/snmpRead-Write
/snmp/globalRead-Write
/snmp/global/enabledRead-Write
/snmp/snmp-communitiesRead-Write
/snmp/snmp-communities/snmp-communityRead-Write
/snmp/snmp-communities/snmp-community/community-nameRead-Write
/snmp/snmp-communities/snmp-community/community-permissionRead-Write
/snmp/snmp-usersRead-Write
/snmp/snmp-users/snmp-userRead-Write
/snmp/snmp-users/snmp-user/user-nameRead-Write
/snmp/snmp-users/snmp-user/authen-modeRead-Write
/snmp/snmp-users/snmp-user/authen-keyRead-Write
/snmp/snmp-users/snmp-user/privacy-modeRead-Write
/snmp/snmp-users/snmp-user/privacy-keyRead-Write
/snmp/snmp-users/snmp-user/user-typeRead-Write
/snmp/snmp-users/snmp-user/permissionRead-Write
/snmp/snmp-sourcesRead-Write
/snmp/snmp-sources/snmp-sourceRead-Write
/snmp/snmp-sources/snmp-source/source-ipRead-Write
/snmp/snmp-sources/snmp-source/udp-portRead-Write
/snmp/snmp-sources/snmp-source/vrf-nameRead-Write
/snmp/snmp-trapsRead-Write
/snmp/snmp-traps/snmp-trapRead-Write
/snmp/snmp-traps/snmp-trap/trap-typeRead-Write
/snmp/snmp-traps/snmp-trap/trap-ipRead-Write
/snmp/snmp-traps/snmp-trap/vrf-nameRead-Write
/snmp/snmp-traps/snmp-trap/udp-portRead-Write
/snmp/snmp-traps/snmp-trap/community-nameRead-Write
/snmp/snmp-traps/snmp-trap/user-nameRead-Write
/snmp/system-usage-thresholdRead-Write
/snmp/system-usage-threshold/cpu-usageRead-Write
/snmp/system-usage-threshold/memory-usageRead-Write

Path

/snmp

Node Type

container

Description

SNMP(Simple Network Management Protocol) container support to set snmp-agent

Access

Read-Write

Path

/snmp/global

Node Type

container

Description

SNMP global configuration.

Access

Read-Write

Path

/snmp/global/enabled

Node Type

leaf

Description

startup or stop SNMP docker container.

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

Path

/snmp/snmp-communities

Node Type

container

Description

SNMP agent communities list.

Access

Read-Write

Path

/snmp/snmp-communities/snmp-community

Node Type

list

Description

SNMP agent community configuration.

Access

Read-Write

/snmp/snmp-communities/snmp-community/community-name

Section titled “/snmp/snmp-communities/snmp-community/community-name”

Path

/snmp/snmp-communities/snmp-community/community-name

Node Type

leaf

Description

SNMP agent community name, ‘public’ is the default value.

Access

Read-Write

Data Type

/snmp/snmp-communities/snmp-community/community-permission

Section titled “/snmp/snmp-communities/snmp-community/community-permission”

Path

/snmp/snmp-communities/snmp-community/community-permission

Node Type

leaf

Description

permission of the snmp community.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • RO
  • RW

Path

/snmp/snmp-users

Node Type

container

Description

SNMP agent users list.

Access

Read-Write

Path

/snmp/snmp-users/snmp-user

Node Type

list

Description

SNMP agent user configuration.

Access

Read-Write

Path

/snmp/snmp-users/snmp-user/user-name

Node Type

leaf

Access

Read-Write

Data Type

Constraints

String with length: 1 to 32

Path

/snmp/snmp-users/snmp-user/authen-mode

Node Type

leaf

Description

Enables authentication of the user.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • Enumeration with options:
  • MD5
  • SHA
  • When condition: ../user-type != ‘noAuthNoPriv’

Path

/snmp/snmp-users/snmp-user/authen-key

Node Type

leaf

Description

The key used in MD5 or SHA based authentication algorithms for user authentication.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • When condition: ../authen-mode
  • String with length: 8 to 64

Mandatory

Yes

Path

/snmp/snmp-users/snmp-user/privacy-mode

Node Type

leaf

Description

Enables privacy related configuration of the user.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • When condition: ../authen-mode and ../user-type = ‘Priv’
  • Enumeration with options:
  • DES
  • AES

Path

/snmp/snmp-users/snmp-user/privacy-key

Node Type

leaf

Description

A secret key used by the DES or AES based encryption algorithm for authentication password.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • When condition: ../privacy-mode
  • String with length: 8 to 64

Mandatory

Yes

Path

/snmp/snmp-users/snmp-user/user-type

Node Type

leaf

Description

The Authentication type, which contain 3 ways, noAuthNoPriv(no key) and AuthNoPriv(only auth key) and Priv(both auth and priv keys)

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • noAuthNoPriv
  • AuthNoPriv
  • Priv

Path

/snmp/snmp-users/snmp-user/permission

Node Type

leaf

Description

permission of the snmp user agent.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • RO
  • RW

Path

/snmp/snmp-sources

Node Type

container

Description

SNMP agent sources list.

Access

Read-Write

Path

/snmp/snmp-sources/snmp-source

Node Type

list

Description

SNMP agent source configuration.

Access

Read-Write

Path

/snmp/snmp-sources/snmp-source/source-ip

Node Type

leaf

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
  • An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

Path

/snmp/snmp-sources/snmp-source/udp-port

Node Type

leaf

Description

Set snmp source udp port, default: 161

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 65535

Path

/snmp/snmp-sources/snmp-source/vrf-name

Node Type

leaf

Description

Set snmp source vrf, default: default(if use default, will set ” in CONFIG_DB)

Access

Read-Write

Data Type

Constraints

LeafRef pointing to: asternos-vrf:vrf-ref

Path

/snmp/snmp-traps

Node Type

container

Description

SNMP agent traps list.

Access

Read-Write

Path

/snmp/snmp-traps/snmp-trap

Node Type

list

Description

SNMP agent trap configuration.

Access

Read-Write

Path

/snmp/snmp-traps/snmp-trap/trap-type

Node Type

leaf

Description

SNMP agent trap type.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • v1
  • v2c
  • v3

Path

/snmp/snmp-traps/snmp-trap/trap-ip

Node Type

leaf

Description

SNMP agent trap ip address.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
  • An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

Mandatory

Yes

Path

/snmp/snmp-traps/snmp-trap/vrf-name

Node Type

leaf

Description

Set snmp trap vrf

Access

Read-Write

Data Type

Constraints

LeafRef pointing to: asternos-vrf:vrf-ref

Path

/snmp/snmp-traps/snmp-trap/udp-port

Node Type

leaf

Description

SNMP agent trap udp port, default: 162

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 65535

Path

/snmp/snmp-traps/snmp-trap/community-name

Node Type

leaf

Description

SNMP agent trap community name.

Access

Read-Write

Data Type

Constraints

When condition: ../trap-type = ‘v1’ or ../trap-type = ‘v2c’

Path

/snmp/snmp-traps/snmp-trap/user-name

Node Type

leaf

Description

SNMP agent trap user name.

Access

Read-Write

Data Type

Constraints

When condition: ../trap-type = ‘v3’

Mandatory

Yes

Path

/snmp/system-usage-threshold

Node Type

container

Description

SNMP system usage threshold configuration.

Access

Read-Write

Path

/snmp/system-usage-threshold/cpu-usage

Node Type

leaf

Description

when cpu usage up to the threshold, the overload msg will be trapped

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 100

Path

/snmp/system-usage-threshold/memory-usage

Node Type

leaf

Description

when memory usage up to the threshold, the overload msg will be trapped

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 100