Skip to content

Commit

Permalink
Optical channel reference to it's logical channel (#1130)
Browse files Browse the repository at this point in the history
* Add a state leaf to optical channels to reference their logical
channel assignment
  • Loading branch information
ejbrever authored Jul 30, 2024
1 parent 72d3b67 commit 8dc427e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion release/models/optical-transport/openconfig-terminal-device.yang
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ module openconfig-terminal-device {
ports per linecard, separate linecards for client and line ports,
etc.).";

oc-ext:openconfig-version "1.9.1";
oc-ext:openconfig-version "1.9.2";

revision "2024-06-12" {
description
"Add a state leaf to optical channels to reference their logical
channel assignment.";
reference "1.9.2";
}

revision "2023-12-13" {
description
Expand Down Expand Up @@ -1325,6 +1332,18 @@ module openconfig-terminal-device {
to the same value across related optical channels.";
}

leaf logical-channel-assignment {
type leafref {
path "/oc-opt-term:terminal-device/oc-opt-term:logical-channels" +
"/oc-opt-term:channel/oc-opt-term:index";
}
description
"Reference to the logical channel that is directly assigned
to this optical channel if it is assigned to a logical channel.
The logical channel must also reference this optical channel at
logical-channel-assignments/assignment/state/optical-channel";
}

uses oc-transceiver:optical-power-state;

container chromatic-dispersion {
Expand Down

0 comments on commit 8dc427e

Please sign in to comment.