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

Remove unused chassis-id for P4RT #1020

Merged
merged 2 commits into from
Dec 27, 2023
Merged
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
34 changes: 7 additions & 27 deletions release/models/p4rt/openconfig-p4rt.yang
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ module openconfig-p4rt {
The P4RT protocol specification is linked from https://p4.org/specs/
under the P4Runtime heading.";

oc-ext:openconfig-version "0.4.0";
oc-ext:openconfig-version "1.0.0";

revision 2023-12-13 {
description
"Remove unused chassis id";
reference "1.0.0";
}

revision 2022-08-19 {
description
Expand Down Expand Up @@ -104,18 +110,6 @@ module openconfig-p4rt {
}
}

grouping p4rt-chassis-config {
description
"Config regarding P4RT use cases which corresponds to the global device hardware package";

leaf id {
type uint32;
description
"An identifier used for the root of oc-p4rt:node-id. It is used to
indicate which oc-p4rt:node-id's belong to the same device";
}
}

grouping p4rt-ic-config {
description
"Integrated-circuit specific configuration that is applicable to devices
Expand Down Expand Up @@ -176,20 +170,6 @@ module openconfig-p4rt {
uses p4rt-ic-config;
}

augment "/oc-platform:components/oc-platform:component/" +
"oc-platform:chassis/oc-platform:config" {
description
"Add P4RT chassis config to platform chassis component.";
uses p4rt-chassis-config;
}

augment "/oc-platform:components/oc-platform:component/" +
"oc-platform:chassis/oc-platform:state" {
description
"Add P4RT chassis state to platform chassis component.";
uses p4rt-chassis-config;
}

}

// rpc statements
Expand Down