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>Resources
Section titled “Resources”Resource List
Section titled “Resource List”| Path | Access |
|---|---|
| /lldp-ports | Read-Write |
| /lldp-ports/lldp-port | Read-Write |
| /lldp-ports/lldp-port/ifname | Read-Write |
| /lldp-ports/lldp-port/vid | Read-Write |
| /lldp-ports/lldp-port/vlan-type | Read-Write |
| /lldp-ports/lldp-port/priority | Read-Write |
| /lldp-ports/lldp-port/dscp | Read-Write |
| /lldp-global | Read-Write |
| /lldp-global/global-portid-subtype | Read-Write |
| /lldp-global/management-address | Read-Write |
| /lldp-global/dot3-power | Read-Write |
| /lldp-global/med-power | Read-Write |
| /lldp-global/admin-status | Read-Write |
Detailed Nodes
Section titled “Detailed Nodes”/lldp-ports
Section titled “/lldp-ports”Path
/lldp-ports
Node Type
container
Description
LLDP port MED policy configuration.
Access
Read-Write
/lldp-ports/lldp-port
Section titled “/lldp-ports/lldp-port”Path
/lldp-ports/lldp-port
Node Type
list
Description
The list of port on the device.
Access
Read-Write
/lldp-ports/lldp-port/ifname
Section titled “/lldp-ports/lldp-port/ifname”Path
/lldp-ports/lldp-port/ifname
Node Type
leaf
Description
Port name of current port.
Access
Read-Write
Data Type
/lldp-ports/lldp-port/vid
Section titled “/lldp-ports/lldp-port/vid”Path
/lldp-ports/lldp-port/vid
Node Type
leaf
Description
VLAN ID to advertise.
Access
Read-Write
Data Type
Constraints
Valid range:
/lldp-ports/lldp-port/vlan-type
Section titled “/lldp-ports/lldp-port/vlan-type”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
/lldp-ports/lldp-port/priority
Section titled “/lldp-ports/lldp-port/priority”Path
/lldp-ports/lldp-port/priority
Node Type
leaf
Description
MED policy priority.
Access
Read-Write
Data Type
Constraints
Valid range: 0 to 7
/lldp-ports/lldp-port/dscp
Section titled “/lldp-ports/lldp-port/dscp”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
/lldp-global
Section titled “/lldp-global”Path
/lldp-global
Node Type
container
Description
LLDP global parameters.
Access
Read-Write
/lldp-global/global-portid-subtype
Section titled “/lldp-global/global-portid-subtype”Path
/lldp-global/global-portid-subtype
Node Type
leaf
Description
Type of portid.
Access
Read-Write
Data Type
Constraints
Enumeration with options:
- ifname
- macaddress
/lldp-global/management-address
Section titled “/lldp-global/management-address”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
/lldp-global/dot3-power
Section titled “/lldp-global/dot3-power”Path
/lldp-global/dot3-power
Node Type
leaf
Description
lldp management dot3 power configuration.
Access
Read-Write
Data Type
Constraints
Valid in [true, false]
/lldp-global/med-power
Section titled “/lldp-global/med-power”Path
/lldp-global/med-power
Node Type
leaf
Description
lldp management med power configuration.
Access
Read-Write
Data Type
Constraints
Valid in [true, false]
/lldp-global/admin-status
Section titled “/lldp-global/admin-status”Path
/lldp-global/admin-status
Node Type
leaf
Description
Administrative status of all port.
Access
Read-Write
Data Type
Constraints
Valid in [true, false]