---
title: lldp
slug: enterprise-v6p1/CKEL-lldp
createdAt: 2025-12-17T08:18:15.061Z
---

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

# <font color="#1d50a2">YANG Tree Diagram</font>

```none
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>
```

# <font color="#1d50a2">Resources</font>

## <font color="#1d50a2">Resource List</font>

| **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 |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/lldp-ports</font>

**Path**

/lldp-ports

**Node Type**

container

**Description**

LLDP port MED policy configuration.

**Access**

Read-Write

### <font color="#1d50a2">/lldp-ports/lldp-port</font>

**Path**

/lldp-ports/lldp-port

**Node Type**

list

**Description**

The list of port on the device.

**Access**

Read-Write

### <font color="#1d50a2">/lldp-ports/lldp-port/ifname</font>

**Path**

/lldp-ports/lldp-port/ifname

**Node Type**

leaf

**Description**

Port name of current port.

**Access**

Read-Write

**Data Type**

\<YANG type ethernet-port-name>

### <font color="#1d50a2">/lldp-ports/lldp-port/vid</font>

**Path**

/lldp-ports/lldp-port/vid

**Node Type**

leaf

**Description**

VLAN ID to advertise.

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range:

### <font color="#1d50a2">/lldp-ports/lldp-port/vlan-type</font>

**Path**

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

**Node Type**

leaf

**Description**

Set tagged/untagged flag.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- tagged
- untagged

### <font color="#1d50a2">/lldp-ports/lldp-port/priority</font>

**Path**

/lldp-ports/lldp-port/priority

**Node Type**

leaf

**Description**

MED policy priority.

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 0 to 7

### <font color="#1d50a2">/lldp-ports/lldp-port/dscp</font>

**Path**

/lldp-ports/lldp-port/dscp

**Node Type**

leaf

**Description**

DSCP value to advertise.

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 0 to 63

### <font color="#1d50a2">/lldp-global</font>

**Path**

/lldp-global

**Node Type**

container

**Description**

LLDP global parameters.

**Access**

Read-Write

### <font color="#1d50a2">/lldp-global/global-portid-subtype</font>

**Path**

/lldp-global/global-portid-subtype

**Node Type**

leaf

**Description**

Type of portid.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- ifname
- macaddress

### <font color="#1d50a2">/lldp-global/management-address</font>

**Path**

/lldp-global/management-address

**Node Type**

leaf

**Description**

LLDP management address configuration.

**Access**

Read-Write

**Data Type**

\<YANG type management-ip>

**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

### <font color="#1d50a2">/lldp-global/dot3-power</font>

**Path**

/lldp-global/dot3-power

**Node Type**

leaf

**Description**

lldp management dot3 power configuration.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/lldp-global/med-power</font>

**Path**

/lldp-global/med-power

**Node Type**

leaf

**Description**

lldp management med power configuration.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/lldp-global/admin-status</font>

**Path**

/lldp-global/admin-status

**Node Type**

leaf

**Description**

Administrative status of all port.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

