Skip to content

Commit

Permalink
Remove when statements, adjust description stmts
Browse files Browse the repository at this point in the history
  • Loading branch information
earies committed Oct 7, 2024
1 parent ab0009d commit 3b37c2b
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions release/models/interfaces/openconfig-if-ethernet.yang
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,11 @@ module openconfig-if-ethernet {

grouping physical-interface-config {
description
"Configuration specific to physical ethernet interfaces";
"Configuration specific to physical ethernet interfaces. Note
that this grouping is to only apply when the interface `type` is
set to 'ianaift:ethernetCsmacd'. This is not currently restricted
by YANG language statements (must/when) due to uses of this module
within other domains (e.g. wifi).";

leaf auto-negotiate {
type boolean;
Expand Down Expand Up @@ -612,7 +616,11 @@ module openconfig-if-ethernet {

grouping physical-interface-state {
description
"Grouping for defining Ethernet-specific operational state";
"Grouping for operational state specific to physical ethernet
interfaces. Note that this grouping is to only apply when the
interface `type` is set to 'ianaift:ethernetCsmacd'. This is not
currently restricted by YANG language statements (must/when) due
to uses of this module within other domains (e.g. wifi).";

leaf hw-mac-address {
type oc-yang:mac-address;
Expand Down Expand Up @@ -672,14 +680,7 @@ module openconfig-if-ethernet {
description "Configuration data for ethernet interfaces";

uses ethernet-interface-config;

uses physical-interface-config {
when "../../oc-if:config/oc-if:type = 'ianaift:ethernetCsmacd'" {
description
"Configuration specific for physical ethernet interfaces";
}
}

uses physical-interface-config;
}

container state {
Expand All @@ -688,20 +689,8 @@ module openconfig-if-ethernet {
description "State variables for Ethernet interfaces";

uses ethernet-interface-config;

uses physical-interface-config {
when "../../oc-if:config/oc-if:type = 'ianaift:ethernetCsmacd'" {
description
"Configuration specific for physical ethernet interfaces";
}
}

uses physical-interface-state {
when "../../oc-if:config/oc-if:type = 'ianaift:ethernetCsmacd'" {
description
"State specific for physical ethernet interfaces";
}
}
uses physical-interface-config;
uses physical-interface-state;
uses ethernet-interface-state;

}
Expand Down

0 comments on commit 3b37c2b

Please sign in to comment.