Skip to content

Commit

Permalink
Deprecate bootconfig certz message to align with bootz (#197)
Browse files Browse the repository at this point in the history
* Readd grpc.pb.go based on compiler standardization in OC repos

* Update deps and fix go version in workspace and regenerate files
  • Loading branch information
marcushines authored May 13, 2024
1 parent bdbf515 commit 508de08
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 47 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ http_archive(
)

load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")

switched_rules_by_language(
name = "com_google_googleapis_imports",
cc = True,
Expand Down Expand Up @@ -55,9 +56,9 @@ go_register_toolchains(go_version = "1.20")
bazel_gazelle()

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

load("//:gnoi_deps.bzl", "gnoi_deps")

# gazelle:repository_macro gnoi_deps.bzl%gnoi_deps
gnoi_deps()

load("@rules_proto_grpc//go:repositories.bzl", rules_proto_grpc_go_repos = "go_repos")
Expand All @@ -77,14 +78,13 @@ load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")

grpc_deps()


# open-config YANG files
http_archive(
name = "github_openconfig_yang",
build_file_content = """exports_files(glob(["release/models/**/*.yang"]), visibility = ["//visibility:public"])""",
sha256 = "f6b2b6c0ffe0b66881287bcd43241a57583f353cc5cc41cba973601c32232f45",
strip_prefix = "public-bf737a5567ec248456cb528efcd63cab15e8fc69",
urls = [
urls = [
"https://github.com/openconfig/public/archive/bf737a5567ec248456cb528efcd63cab15e8fc69.zip",
],
)
Expand All @@ -95,7 +95,7 @@ http_archive(
build_file_content = """exports_files(glob(["standard/**/*.yang"]), visibility = ["//visibility:public"])""",
sha256 = "55913058f64a1ec7fe9e6e70d7128f08e66b20c859803b1fb02dbaf7eef2c64d",
strip_prefix = "yang-2fa291d6bdb4b281d4e1b3dfa3254ffa7257d800",
urls = [
urls = [
"https://github.com/YangModels/yang/archive/2fa291d6bdb4b281d4e1b3dfa3254ffa7257d800.zip",
],
)
49 changes: 32 additions & 17 deletions bootconfig/bootconfig.pb.go

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

3 changes: 2 additions & 1 deletion bootconfig/bootconfig.proto
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ message SetBootConfigRequest {
bootz.Credentials credentials = 2;
gnsi.pathz.v1.UploadRequest pathz = 3;
gnsi.authz.v1.UploadRequest authz = 4;
gnsi.certz.v1.UploadRequest certificates = 5;
gnsi.certz.v1.UploadRequest certificates = 5 [deprecated=true];
bootz.CertzProfiles certz = 6;
}

message SetBootConfigResponse {
Expand Down
Loading

0 comments on commit 508de08

Please sign in to comment.