Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 51 additions & 1 deletion release/models/acl/openconfig-packet-match.yang
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ module openconfig-packet-match {
wildcard ('any') for that field.";


oc-ext:openconfig-version "2.2.0";
oc-ext:openconfig-version "2.3.0";

revision "2026-03-25" {
description
"Add internal switching fabric parameters";
reference "2.3.0";
}

revision "2025-06-10" {
description
Expand Down Expand Up @@ -739,4 +745,48 @@ module openconfig-packet-match {
}
}

grouping fabric-params-top {
description
"Top-level grouping for parameters related to the internal
switching fabric of the device.";

container fabric {
description
"Enclosing container for managing device-specific fabric
attributes.";

container config {
description
"Configuration parameters relating to fabric
parameters.";

uses fabric-params-config;
}

container state {
description
"Operational state parameters relating to fabric
parameters.";
config false;

uses fabric-params-config;
}
}
}

grouping fabric-params-config {
description
"Top-level grouping for configurable parameters related to the
internal switching fabric of the device.";
leaf fabric-priority {
type uint8;
description
"Specifies the priority for the forwarding group for local
transmission through the device (e.g., across the internal
switching fabric). The priority is expressed as a numerical
value where higher values indicate higher precedence. For
example, traffic with fabric priority 128 is treated with
higher priority than traffic with fabric priority 0.";
}
}
}
9 changes: 8 additions & 1 deletion release/models/qos/openconfig-qos-elements.yang
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ submodule openconfig-qos-elements {
packets for transmission, including policer and shaper
functions";

oc-ext:openconfig-version "2.0.1";
oc-ext:openconfig-version "2.1.0";

revision "2026-03-25" {
description
"Add fabric parameters for classifier.";
reference "2.1.0";
}

revision "2026-01-24" {
description
Expand Down Expand Up @@ -257,6 +263,7 @@ submodule openconfig-qos-elements {
uses oc-pkt-match:ipv6-protocol-fields-top;
uses oc-pkt-match:transport-fields-top;
uses oc-pkt-match:mpls-header-top;
uses oc-pkt-match:fabric-params-top;
}

container actions {
Expand Down
8 changes: 7 additions & 1 deletion release/models/qos/openconfig-qos-interfaces.yang
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ submodule openconfig-qos-interfaces {
configuration and operational state associated with
interfaces.";

oc-ext:openconfig-version "2.0.1";
oc-ext:openconfig-version "2.1.0";

revision "2026-03-25" {
description
"Bump version to 2.1.0";
reference "2.1.0";
}

revision "2026-01-24" {
description
Expand Down
21 changes: 20 additions & 1 deletion release/models/qos/openconfig-qos-mem-mgmt.yang
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ submodule openconfig-qos-mem-mgmt {
per-queue basis, and determine how packets are marked/dropped within
the queue instantiation.";

oc-ext:openconfig-version "2.0.1";
oc-ext:openconfig-version "2.1.0";

revision "2026-03-25" {
description
"Add packet discard action at queue level.";
reference "2.1.0";
}

revision "2026-01-24" {
description
Expand Down Expand Up @@ -341,6 +347,19 @@ revision "2023-07-26" {
calculated as (free buffer * 2^scaling factor) ie. 10MB*2^3 = 80MB. Since the
current usage is 79MB which is < 80MB, the packet is queued.";
}

leaf trim-enable {
type boolean;

description
"Flag to enable packet trimming per queue. If leaf is set
to false, the packet should be completely discard,
effectively silent dropping without preserving any part
of the data. If leaf is set to false, packet would be
trimmed instead of fully dropped. Typically, this involves
truncating the payload while preserving the packet header
for notification or diagnostic purposes.";
}
}

grouping qos-queue-management-profile-config {
Expand Down
57 changes: 55 additions & 2 deletions release/models/qos/openconfig-qos.yang
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ module openconfig-qos {
"This module defines configuration and operational state data
related to network quality-of-service.";

oc-ext:openconfig-version "2.0.1";
oc-ext:openconfig-version "2.1.0";

revision "2026-03-25" {
description
"Add parameters for packet trimming configuration";
reference "2.1.0";
}

revision "2026-01-24" {
description
Expand Down Expand Up @@ -169,6 +175,52 @@ revision "2023-07-26" {
"Operational state data for global QoS";
}

grouping qos-packet-trim-top {
description
"Top-level grouping for packet trimming.";

container packet-trim {
description
"Container for switch level packet trimming
parameters.";

container config {
description
"Configuration data for switch level packet
trimming parameters.";

uses packet-trim-config;
}
container state {
description
"Operational state data for switch level packet
trimming parameters.";
config false;

uses packet-trim-config;
}
}
}

grouping packet-trim-config {
description
"Top-level grouping for switch level packet
trimming parameters";
leaf symmetric-dscp {
type uint8;
description
"The DSCP value for the notification packet
(sometimes called a 'symmetric packet') sent back
to the source when a packet is trimmed.";
}
leaf fabric-priority {
type uint8;
description
"Traffic class used to transmit trimmed
packets.";
}
}

grouping qos-top {
description
"Top-level grouping for QoS model";
Expand All @@ -185,10 +237,10 @@ revision "2023-07-26" {
}

container state {
config false;
description
"Operational state data for global QoS";

config false;
uses qos-config;
uses qos-state;
}
Expand All @@ -200,6 +252,7 @@ revision "2023-07-26" {
uses qos-scheduler-top;
uses qos-buffer-profile-top;
uses qos-queue-mgmt-profile-top;
uses qos-packet-trim-top;
}
}

Expand Down
Loading