Skip to content

Commit

Permalink
Added deviation for GetOnStateUnsupported (#3833)
Browse files Browse the repository at this point in the history
* Added deviation for GetOnStateUnsupported

* Added deviation for GetOnStateUnsupported

* Added deviation for GetOnRootUnsupported

* Added deviation for GetOnRootUnsupported

* Added deviation for GetOnRootUnsupported

* Added deviation for GetOnRootUnsupported

---------

Co-authored-by: mnp-juniper <manikdasan@gmail.com>
  • Loading branch information
mnp-juniper and mnp-juniper authored Feb 27, 2025
1 parent 56ce121 commit 2215c9d
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ platform_exceptions: {
gnmi_get_on_root_unsupported: true
}
}
platform_exceptions: {
platform: {
vendor: JUNIPER
}
deviations: {
gnmi_get_on_root_unsupported: true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ func TestGNMIClient(t *testing.T) {
if deviations.GNMIGetOnRootUnsupported(dut) {
req = &gpb.GetRequest{
Path: []*gpb.Path{{
Elem: []*gpb.PathElem{
{Name: "system"}, {Name: "state"}, {Name: "hostname"}}},
},
Type: gpb.GetRequest_STATE,
Elem: []*gpb.PathElem{}}},
Type: gpb.GetRequest_CONFIG,
Encoding: gpb.Encoding_JSON_IETF,
}

} else {
req = &gpb.GetRequest{Encoding: gpb.Encoding_JSON_IETF, Path: []*gpb.Path{{Elem: []*gpb.PathElem{}}}}
}
Expand Down
1 change: 1 addition & 0 deletions proto/metadata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ message Metadata {
// Juniper b/395551640
bool oper_status_for_ic_unsupported = 256;


// Reserved field numbers and identifiers.
reserved 84, 9, 28, 20, 90, 97, 55, 89, 19, 36, 35, 40, 173, 141;
}
Expand Down
126 changes: 32 additions & 94 deletions proto/metadata_go_proto/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2215c9d

Please sign in to comment.