跳转到内容
Ask AI

lldp

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

AsterNOS YANG Model for LLDP(Link Layer Discovery Protocol).

module: asternos-lldp
+--rw lldp-ports
| +--rw lldp-port* [ifname]
| +--rw ifname cmn:ethernet-port-name
| +--rw vid? uint32
| +--rw vlan-type? enumeration
| +--rw priority? uint32
| +--rw dscp? uint32
+--rw lldp-global
+--rw global-portid-subtype? enumeration
+--rw management-address? management-ip
+--rw dot3-power? boolean
+--rw med-power? boolean
+--rw admin-status? boolean
rpcs:
+---x show-lldp-table
| +--ro output
| +--ro data? <anydata>
+---x show-lldp-ports-med-policy
| +--ro output
| +--ro data? <anydata>
+---x show-lldp-neighbor
+---w input
| +---w port? cmn:ethernet-port-name
+--ro output
+--ro data? <anydata>
PathAccess
/lldp-portsRead-Write
/lldp-ports/lldp-portRead-Write
/lldp-ports/lldp-port/ifnameRead-Write
/lldp-ports/lldp-port/vidRead-Write
/lldp-ports/lldp-port/vlan-typeRead-Write
/lldp-ports/lldp-port/priorityRead-Write
/lldp-ports/lldp-port/dscpRead-Write
/lldp-globalRead-Write
/lldp-global/global-portid-subtypeRead-Write
/lldp-global/management-addressRead-Write
/lldp-global/dot3-powerRead-Write
/lldp-global/med-powerRead-Write
/lldp-global/admin-statusRead-Write

Path

/lldp-ports

Node Type

container

Description

LLDP port MED policy configuration.

Access

Read-Write

Path

/lldp-ports/lldp-port

Node Type

list

Description

The list of port on the device.

Access

Read-Write

Path

/lldp-ports/lldp-port/ifname

Node Type

leaf

Description

Port name of current port.

Access

Read-Write

Data Type

Path

/lldp-ports/lldp-port/vid

Node Type

leaf

Description

VLAN ID to advertise.

Access

Read-Write

Data Type

Constraints

Valid range:

Path

/lldp-ports/lldp-port/vlan-type

Node Type

leaf

Description

Set tagged/untagged flag.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • tagged
  • untagged

Path

/lldp-ports/lldp-port/priority

Node Type

leaf

Description

MED policy priority.

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 7

Path

/lldp-ports/lldp-port/dscp

Node Type

leaf

Description

DSCP value to advertise.

Access

Read-Write

Data Type

Constraints

Valid range: 0 to 63

Path

/lldp-global

Node Type

container

Description

LLDP global parameters.

Access

Read-Write

Path

/lldp-global/global-portid-subtype

Node Type

leaf

Description

Type of portid.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • ifname
  • macaddress

Path

/lldp-global/management-address

Node Type

leaf

Description

LLDP management address configuration.

Access

Read-Write

Data Type

Constraints

Multiple constraints:

  • The ipv6-address type represents an IPv6 address in full, mixed, shortened, and shortened-mixed notation. The IPv6 address may include a zone index, separated by a % sign.

If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format of IPv6 addresses uses the textual representation defined in Section 4 of RFC 5952. The canonical format for the zone index is the numerical format as described in Section 11.2 of RFC 4007.

  • The ipv4-address type represents an IPv4 address in dotted-quad notation. The IPv4 address may include a zone index, separated by a % sign. If a system uses zone names that are not represented in UTF-8, then an implementation needs to use some mechanism to transform the local name into UTF-8. The definition of such a mechanism is outside the scope of this document.

The zone index is used to disambiguate identical address values. For link-local addresses, the zone index will typically be the interface index number or the name of an interface. If the zone index is not present, the default zone of the device will be used.

The canonical format for the zone index is the numerical format

Path

/lldp-global/dot3-power

Node Type

leaf

Description

lldp management dot3 power configuration.

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

Path

/lldp-global/med-power

Node Type

leaf

Description

lldp management med power configuration.

Access

Read-Write

Data Type

Constraints

Valid in [true, false]

Path

/lldp-global/admin-status

Node Type

leaf

Description

Administrative status of all port.

Access

Read-Write

Data Type

Constraints

Valid in [true, false]