Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config and state for individual Ethernet port priority in a LAG #943

Merged
merged 10 commits into from
Dec 12, 2023
53 changes: 42 additions & 11 deletions release/models/lacp/openconfig-lacp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ module openconfig-lacp {
managing aggregate interfaces. It works in conjunction with
the OpenConfig interfaces and aggregate interfaces models.";

oc-ext:openconfig-version "1.2.0";
oc-ext:openconfig-version "2.0.0";
dplore marked this conversation as resolved.
Show resolved Hide resolved

revision "2023-08-28" {
description
"Add config container for aggregation member and port-priority leaf under
both config and state";
reference "2.0.0";
dplore marked this conversation as resolved.
Show resolved Hide resolved
}

revision "2021-07-20" {
description
Expand Down Expand Up @@ -138,8 +145,17 @@ module openconfig-lacp {
description
"Configuration data for lacp member interfaces";

//currently a placeholder -- the list of member interfaces
//and their status is considered opstate only
leaf interface {
type oc-if:base-interface-ref;
description
"Reference to interface member of the LACP aggregate";
}

leaf port-priority {
type uint16;
description
"Member interface's priority in its aggregate interface.";
}
}

grouping aggregation-lacp-members-state {
Expand Down Expand Up @@ -234,6 +250,18 @@ module openconfig-lacp {
port";
}

leaf port-priority {
type uint16;
description
"Member interface's priority in its aggregate interface.";
}

leaf partner-port-priority {
type uint16;
description
"Member interface partner's priority in its aggregate interface.";
}

marius-ore marked this conversation as resolved.
Show resolved Hide resolved
leaf last-change {
type oc-types:timeticks64;
description
Expand Down Expand Up @@ -310,28 +338,31 @@ grouping aggregation-lacp-members-statistics {
"Top-level grouping for aggregate members list";

container members {
config false;
description
"Enclosing container for the list of members interfaces of
the aggregate. This list is considered operational state
only so is labeled config false and has no config container";
"Configuration and operational state of the aggregate member
interfaces";
dplore marked this conversation as resolved.
Show resolved Hide resolved

list member {
key "interface";
description
"List of member interfaces and their associated status for
a LACP-controlled aggregate interface. Member list is not
configurable here -- each interface indicates items
its participation in the LAG.";
a LACP-controlled aggregate interface";

leaf interface {
type leafref {
path "../state/interface";
path "../config/interface";
}
description
"Reference to aggregate member interface";
}

container config {
description
"Operational state data for aggregate members";

uses aggregation-lacp-members-config;
}

marius-ore marked this conversation as resolved.
Show resolved Hide resolved

container state {

Expand Down
Loading