---
title: ports
slug: enterprise-v6p1/ports
createdAt: 2025-12-17T08:18:00.462Z
---

AsterNOS YANG Model for ports.

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

```none
module: asternos-ports
  +--rw ports-global
     +--rw link-delay?   uint16

  augment /if:interfaces/if:interface:
    +--rw ethernet-config
    |  +--rw auto-negotiate?             boolean
    |  +--rw port-speed?                 identityref
    |  +--rw fec?                        enumeration
    |  +--ro lanes*                      uint16
    |  +--ro index?                      uint16
    |  +--ro alias?                      string
    |  +--rw mac-address-learning?       boolean
    |  +--rw unknown-unicast-action?     port-bum-action
    |  +--rw unknown-multicast-action?   port-bum-action
    |  +--rw broadcast-action?           port-bum-action
    |  +--rw startup-delay?              uint16
    +--rw bandwidth-util-warn
    |  +--rw rx-alert-threshold?    uint32
    |  +--rw rx-resume-threshold?   uint32
    |  +--rw tx-alert-threshold?    uint32
    |  +--rw tx-resume-threshold?   uint32
    +--rw l2-protocol-control
       +--rw l2-protocol* [protocol-type]
          +--rw protocol-type    enumeration
          +--rw disable?         boolean

  rpcs:
    +---x show-bandwidth-util-threshold-warn
       +---w input
       |  +---w interface-name?   cmn:ethernet-port-name
       +--ro output
          +--ro data
             +--ro threshold* []
                +--ro interface-name?        cmn:ethernet-port-name
                +--ro rx-alert-threshold?    uint32
                +--ro rx-resume-threshold?   uint32
                +--ro tx-alert-threshold?    uint32
                +--ro tx-resume-threshold?   uint32
```

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

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

| **Path**                                                              | **Access** |
| --------------------------------------------------------------------- | ---------- |
| /ports-global                                                         | Read-Write |
| /ports-global/link-delay                                              | Read-Write |
| /?/interfaces/interface/ethernet-config                               | Read-Write |
| /?/interfaces/interface/ethernet-config/auto-negotiate                | Read-Write |
| /?/interfaces/interface/ethernet-config/port-speed                    | Read-Write |
| /?/interfaces/interface/ethernet-config/fec                           | Read-Write |
| /?/interfaces/interface/ethernet-config/lanes                         | Read-Only  |
| /?/interfaces/interface/ethernet-config/index                         | Read-Only  |
| /?/interfaces/interface/ethernet-config/alias                         | Read-Only  |
| /?/interfaces/interface/ethernet-config/mac-address-learning          | Read-Write |
| /?/interfaces/interface/ethernet-config/unknown-unicast-action        | Read-Write |
| /?/interfaces/interface/ethernet-config/unknown-multicast-action      | Read-Write |
| /?/interfaces/interface/ethernet-config/broadcast-action              | Read-Write |
| /?/interfaces/interface/ethernet-config/startup-delay                 | Read-Write |
| /?/interfaces/interface/bandwidth-util-warn                           | Read-Write |
| /?/interfaces/interface/bandwidth-util-warn/rx-alert-threshold        | Read-Write |
| /?/interfaces/interface/bandwidth-util-warn/rx-resume-threshold       | Read-Write |
| /?/interfaces/interface/bandwidth-util-warn/tx-alert-threshold        | Read-Write |
| /?/interfaces/interface/bandwidth-util-warn/tx-resume-threshold       | Read-Write |
| /?/interfaces/interface/l2-protocol-control                           | Read-Write |
| /?/interfaces/interface/l2-protocol-control/l2-protocol               | Read-Write |
| /?/interfaces/interface/l2-protocol-control/l2-protocol/protocol-type | Read-Write |
| /?/interfaces/interface/l2-protocol-control/l2-protocol/disable       | Read-Write |

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

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

**Path**

/ports-global

**Node Type**

container

**Access**

Read-Write

### <font color="#1d50a2">/ports-global/link-delay</font>

**Path**

/ports-global/link-delay

**Node Type**

leaf

**Description**

When the physical state of an interface changes from down to up, wait for a period of time before reporting the interface up event to prevent frequent network status changes caused by interface status oscillations

**Access**

Read-Write

**Data Type**

\<YANG type uint16>

**Constraints**

Valid range: 2 to 100

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config</font>

**Path**

/?/interfaces/interface/ethernet-config

**Node Type**

container

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/auto-negotiate</font>

**Path**

/?/interfaces/interface/ethernet-config/auto-negotiate

**Node Type**

leaf

**Description**

Set interface speed auto negotiation. Default enabled for all 1G/2.5G/10G/25G ports, disabled for 40G/100G/400G ports.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/port-speed</font>

**Path**

/?/interfaces/interface/ethernet-config/port-speed

**Node Type**

leaf

**Description**

When auto-negotiate is TRUE, this optionally sets the port-speed mode that will be advertised to the peer for negotiation. If unspecified, it is expected that the interface will select the highest speed available based on negotiation. When auto-negotiate is set to FALSE, sets the link speed to a fixed value -- supported values are defined by PORT\_SPEED identities

**Access**

Read-Write

**Data Type**

\<YANG type identityref>

**Constraints**

IdentityRef with options:

- SPEED\_40G
- SPEED\_1G
- SPEED\_100M
- SPEED\_10M
- SPEED\_100G
- SPEED\_10G
- SPEED\_25G
- SPEED\_2\_5G

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/fec</font>

**Path**

/?/interfaces/interface/ethernet-config/fec

**Node Type**

leaf

**Description**

Set interface fec.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- rs
- fc
- none

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/lanes</font>

**Path**

/?/interfaces/interface/ethernet-config/lanes

**Node Type**

leaf-list

**Description**

lanes of Ethernet.eg: lanes of Ethernet1 is 1

**Access**

Read-Only

**Data Type**

\<YANG type uint16>

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/index</font>

**Path**

/?/interfaces/interface/ethernet-config/index

**Node Type**

leaf

**Description**

index of Ethernet, eg: index of Ethernet1 is 1

**Access**

Read-Only

**Data Type**

\<YANG type uint16>

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/alias</font>

**Path**

/?/interfaces/interface/ethernet-config/alias

**Node Type**

leaf

**Description**

alias of Ethernet. eg: alias of Ethernet1 is Y2

**Access**

Read-Only

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/mac-address-learning</font>

**Path**

/?/interfaces/interface/ethernet-config/mac-address-learning

**Node Type**

leaf

**Description**

Set interface mac-address learning, only support for vlan and its members.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/unknown-unicast-action</font>

**Path**

/?/interfaces/interface/ethernet-config/unknown-unicast-action

**Node Type**

leaf

**Description**

Set the unknown unicast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type port-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/unknown-multicast-action</font>

**Path**

/?/interfaces/interface/ethernet-config/unknown-multicast-action

**Node Type**

leaf

**Description**

Set the unknown multicast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type port-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/broadcast-action</font>

**Path**

/?/interfaces/interface/ethernet-config/broadcast-action

**Node Type**

leaf

**Description**

Set the broadcast packets forwarding action

**Access**

Read-Write

**Data Type**

\<YANG type port-bum-action>

**Constraints**

Enumeration with options:

- flood
- drop

### <font color="#1d50a2">/?/interfaces/interface/ethernet-config/startup-delay</font>

**Path**

/?/interfaces/interface/ethernet-config/startup-delay

**Node Type**

leaf

**Description**

when fisrt admin up, delay few seconds to wait hardware or software initdone

**Access**

Read-Write

**Data Type**

\<YANG type uint16>

**Constraints**

Valid range: 0 to 600

### <font color="#1d50a2">/?/interfaces/interface/bandwidth-util-warn</font>

**Path**

/?/interfaces/interface/bandwidth-util-warn

**Node Type**

container

**Description**

Configure interface bandwidth utilization alarm threshold

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/bandwidth-util-warn/rx-alert-threshold</font>

**Path**

/?/interfaces/interface/bandwidth-util-warn/rx-alert-threshold

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 50 to 100

### <font color="#1d50a2">/?/interfaces/interface/bandwidth-util-warn/rx-resume-threshold</font>

**Path**

/?/interfaces/interface/bandwidth-util-warn/rx-resume-threshold

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 50 to 100

### <font color="#1d50a2">/?/interfaces/interface/bandwidth-util-warn/tx-alert-threshold</font>

**Path**

/?/interfaces/interface/bandwidth-util-warn/tx-alert-threshold

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 50 to 100

### <font color="#1d50a2">/?/interfaces/interface/bandwidth-util-warn/tx-resume-threshold</font>

**Path**

/?/interfaces/interface/bandwidth-util-warn/tx-resume-threshold

**Node Type**

leaf

**Access**

Read-Write

**Data Type**

\<YANG type uint32>

**Constraints**

Valid range: 50 to 100

### <font color="#1d50a2">/?/interfaces/interface/l2-protocol-control</font>

**Path**

/?/interfaces/interface/l2-protocol-control

**Node Type**

container

**Description**

Disable Layer 2 protocol packets trap to the CPU.

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/l2-protocol-control/l2-protocol</font>

**Path**

/?/interfaces/interface/l2-protocol-control/l2-protocol

**Node Type**

list

**Description**

l2 protocol control.

**Access**

Read-Write

### <font color="#1d50a2">/?/interfaces/interface/l2-protocol-control/l2-protocol/protocol-type</font>

**Path**

/?/interfaces/interface/l2-protocol-control/l2-protocol/protocol-type

**Node Type**

leaf

**Description**

l2 protocol name.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- stp
- lacp

### <font color="#1d50a2">/?/interfaces/interface/l2-protocol-control/l2-protocol/disable</font>

**Path**

/?/interfaces/interface/l2-protocol-control/l2-protocol/disable

**Node Type**

leaf

**Description**

Control Layer 2 protocol packets trap to the CPU.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Valid in \[true, false]

