Skip to content

Commit

Permalink
gNOI for Dry Run config diff operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ejbrever committed Sep 26, 2024
1 parent 8e23e5d commit 0f2a2dc
Show file tree
Hide file tree
Showing 5 changed files with 656 additions and 0 deletions.
67 changes: 67 additions & 0 deletions dry_run/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
load("//:common.bzl", "use_new_compilers")

#Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"],
)

use_new_compilers()

proto_library(
name = "dry_run_proto",
srcs = ["dry_run.proto"],
deps = [
"//types:types_proto",
"@com_github_openconfig_gnmi//proto/gnmi:gnmi_proto",
],
)

cc_proto_library(
name = "dry_run_cc_proto",
deps = [":dry_run_proto"],
)

cc_grpc_library(
name = "dry_run_cc_grpc_proto",
srcs = [":dry_run_proto"],
grpc_only = True,
deps = [":dry_run_cc_proto"],
)

go_proto_library(
name = "dry_run_go_proto",
compilers = [
"go_protoc_gen_go",
"go_protoc_gen_go_grpc",
],
importpath = "github.com/openconfig/gnoi/dry_run",
proto = ":dry_run_proto",
deps = [
"//types",
"@com_github_openconfig_gnmi//proto/gnmi:gnmi_go_proto",
],
)

go_library(
name = "dry_run",
embed = [":dry_run_go_proto"],
importpath = "github.com/openconfig/gnoi/dry_run",
)
Loading

0 comments on commit 0f2a2dc

Please sign in to comment.