跳转到内容
Ask AI

ports

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

AsterNOS YANG Model for ports.

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
PathAccess
/ports-globalRead-Write
/ports-global/link-delayRead-Write
/?/interfaces/interface/ethernet-configRead-Write
/?/interfaces/interface/ethernet-config/auto-negotiateRead-Write
/?/interfaces/interface/ethernet-config/port-speedRead-Write
/?/interfaces/interface/ethernet-config/fecRead-Write
/?/interfaces/interface/ethernet-config/lanesRead-Only
/?/interfaces/interface/ethernet-config/indexRead-Only
/?/interfaces/interface/ethernet-config/aliasRead-Only
/?/interfaces/interface/ethernet-config/mac-address-learningRead-Write
/?/interfaces/interface/ethernet-config/unknown-unicast-actionRead-Write
/?/interfaces/interface/ethernet-config/unknown-multicast-actionRead-Write
/?/interfaces/interface/ethernet-config/broadcast-actionRead-Write
/?/interfaces/interface/ethernet-config/startup-delayRead-Write
/?/interfaces/interface/bandwidth-util-warnRead-Write
/?/interfaces/interface/bandwidth-util-warn/rx-alert-thresholdRead-Write
/?/interfaces/interface/bandwidth-util-warn/rx-resume-thresholdRead-Write
/?/interfaces/interface/bandwidth-util-warn/tx-alert-thresholdRead-Write
/?/interfaces/interface/bandwidth-util-warn/tx-resume-thresholdRead-Write
/?/interfaces/interface/l2-protocol-controlRead-Write
/?/interfaces/interface/l2-protocol-control/l2-protocolRead-Write
/?/interfaces/interface/l2-protocol-control/l2-protocol/protocol-typeRead-Write
/?/interfaces/interface/l2-protocol-control/l2-protocol/disableRead-Write

Path

/ports-global

Node Type

container

Access

Read-Write

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

Constraints

Valid range: 2 to 100

Path

/?/interfaces/interface/ethernet-config

Node Type

container

Access

Read-Write

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

Section titled “/?/interfaces/interface/ethernet-config/auto-negotiate”

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

Constraints

Valid in [true, false]

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

Section titled “/?/interfaces/interface/ethernet-config/port-speed”

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

Constraints

IdentityRef with options:

  • SPEED_40G
  • SPEED_1G
  • SPEED_100M
  • SPEED_10M
  • SPEED_100G
  • SPEED_10G
  • SPEED_25G
  • SPEED_2_5G

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

Section titled “/?/interfaces/interface/ethernet-config/fec”

Path

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

Node Type

leaf

Description

Set interface fec.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • rs
  • fc
  • none

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

Section titled “/?/interfaces/interface/ethernet-config/lanes”

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

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

Section titled “/?/interfaces/interface/ethernet-config/index”

Path

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

Node Type

leaf

Description

index of Ethernet, eg: index of Ethernet1 is 1

Access

Read-Only

Data Type

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

Section titled “/?/interfaces/interface/ethernet-config/alias”

Path

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

Node Type

leaf

Description

alias of Ethernet. eg: alias of Ethernet1 is Y2

Access

Read-Only

Data Type

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

Section titled “/?/interfaces/interface/ethernet-config/mac-address-learning”

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

Constraints

Valid in [true, false]

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

Section titled “/?/interfaces/interface/ethernet-config/unknown-unicast-action”

Path

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

Node Type

leaf

Description

Set the unknown unicast packets forwarding action

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • flood
  • drop

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

Section titled “/?/interfaces/interface/ethernet-config/unknown-multicast-action”

Path

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

Node Type

leaf

Description

Set the unknown multicast packets forwarding action

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • flood
  • drop

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

Section titled “/?/interfaces/interface/ethernet-config/broadcast-action”

Path

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

Node Type

leaf

Description

Set the broadcast packets forwarding action

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • flood
  • drop

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

Section titled “/?/interfaces/interface/ethernet-config/startup-delay”

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

Constraints

Valid range: 0 to 600

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

Section titled “/?/interfaces/interface/bandwidth-util-warn”

Path

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

Node Type

container

Description

Configure interface bandwidth utilization alarm threshold

Access

Read-Write

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

Section titled “/?/interfaces/interface/bandwidth-util-warn/rx-alert-threshold”

Path

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

Node Type

leaf

Access

Read-Write

Data Type

Constraints

Valid range: 50 to 100

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

Section titled “/?/interfaces/interface/bandwidth-util-warn/rx-resume-threshold”

Path

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

Node Type

leaf

Access

Read-Write

Data Type

Constraints

Valid range: 50 to 100

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

Section titled “/?/interfaces/interface/bandwidth-util-warn/tx-alert-threshold”

Path

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

Node Type

leaf

Access

Read-Write

Data Type

Constraints

Valid range: 50 to 100

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

Section titled “/?/interfaces/interface/bandwidth-util-warn/tx-resume-threshold”

Path

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

Node Type

leaf

Access

Read-Write

Data Type

Constraints

Valid range: 50 to 100

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

Section titled “/?/interfaces/interface/l2-protocol-control”

Path

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

Node Type

container

Description

Disable Layer 2 protocol packets trap to the CPU.

Access

Read-Write

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

Section titled “/?/interfaces/interface/l2-protocol-control/l2-protocol”

Path

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

Node Type

list

Description

l2 protocol control.

Access

Read-Write

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

Section titled “/?/interfaces/interface/l2-protocol-control/l2-protocol/protocol-type”

Path

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

Node Type

leaf

Description

l2 protocol name.

Access

Read-Write

Data Type

Constraints

Enumeration with options:

  • stp
  • lacp

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

Section titled “/?/interfaces/interface/l2-protocol-control/l2-protocol/disable”

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

Constraints

Valid in [true, false]