Add ingress link-down discard counter to interface and subinterface counters - #1528
Add ingress link-down discard counter to interface and subinterface counters#1528ostromart wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the openconfig-if-ethernet.yang model to version 2.19.0 and introduces a new ingress counter, in-link-down-discards, to track packets dropped due to a down egress interface or next-hop link. The reviewer pointed out that this counter represents a generic Layer 3 forwarding plane discard rather than an Ethernet-specific issue, and suggested moving it to openconfig-interfaces.yang so it can be reused across all interface types.
|
Please handle the Gemini review comments before it arrives for discussion. |
|
Ack, will rework this, unfortunately there was not enough time to do so before today's meeting so we can present it next week. |
This change introduces a new operational state counter in-link-down-discards under interface counters (/interfaces/interface/state/counters/in-link-down-discards and /interfaces/interface/subinterfaces/subinterface/state/counters/in-link-down-discards) to track ingress packets dropped due to egress link-down forwarding conditions. The version has been bumped to 3.9.0 in openconfig-interfaces.yang. Change-Id: I38c19a483b18e47f583c81a0b98597888405892f
4cc054e to
b7c977e
Compare
ae229bb to
2ae7d82
Compare
|
This PR is intended to merge after #1527 and the version reflects that. |
This change bumps openconfig-version to 3.10.0 and updates revision history in openconfig-interfaces.yang to reflect sequential merge order after PR 1527 (3.9.0). Change-Id: I38c19a483b18e47f583c81a0b98597888405892f
2ae7d82 to
c72e467
Compare
This change introduces a new operational state counter
in-link-down-discardsunder interface counters (/interfaces/interface/state/counters/in-link-down-discardsand/interfaces/interface/subinterfaces/subinterface/state/counters/in-link-down-discards) to track ingress packets dropped due to egress link-down forwarding conditions.The version has been bumped to
3.10.0inopenconfig-interfaces.yang.Change-Id: I38c19a483b18e47f583c81a0b98597888405892f
Change Scope
in-link-down-discardstointerface-common-counters-stateinopenconfig-interfaces.yangto count ingress packets discarded because the resolved egress interface or next-hop link selected by forwarding or routing was down.interface-common-counters-stategrouping.Use case
This counter is designed for production network debugging and automated failure pinpointing. Silent packet discards in large-scale fabrics are difficult to diagnose using generic discard counters alone. Providing an explicit counter for inbound packet drops due to egress link-down forwarding failures (
in-link-down-discards) allows network operators and SRE tools to distinguish forwarding blackholes caused by downstream link failures from normal traffic discards.Platform Implementations
SAI_IN_DROP_REASON_EGRESS_LINK_DOWN(SAI Debug Counters Proposal).nvswitch_interface_discards_egress_link_downfor tx andnvswitch_interface_discards_ingress_tx_link_downfor rx).tx_discards_phy).Tree View
module: openconfig-interfaces +--rw interfaces +--rw interface* [name] +--ro state | +--ro counters | +--ro in-errors? oc-yang:counter64 | +--ro in-discards? oc-yang:counter64 + | +--ro in-link-down-discards? oc-yang:counter64 | +--ro out-octets? oc-yang:counter64 +--rw subinterfaces +--rw subinterface* [index] +--ro state +--ro counters +--ro in-errors? oc-yang:counter64 +--ro in-discards? oc-yang:counter64 + +--ro in-link-down-discards? oc-yang:counter64 +--ro out-octets? oc-yang:counter64