Repository navigation
Expand file tree
/
Copy pathBUILD
More file actions
71 lines (68 loc) · 2.4 KB
/
Copy pathBUILD
File metadata and controls
71 lines (68 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:go_grpc_compilers @io_bazel_rules_go//proto:go_grpc_v2, @io_bazel_rules_go//proto:go_proto
# gazelle:prefix github.com/openconfig/lemming
# gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status
# gazelle:resolve proto google/rpc/status.proto @googleapis//google/rpc:status_proto
# gazelle:resolve go github.com/openconfig/lemming/dataplane/proto/sai //dataplane/proto/sai:sai
# gazelle:build_file_name BUILD
# gazelle:exclude github.com/p4lang/p4runtime
gazelle(
name = "gazelle",
)
go_library(
name = "lemming",
srcs = ["lemming.go"],
importpath = "github.com/openconfig/lemming",
visibility = ["//visibility:public"],
deps = [
"//bgp",
"//dataplane",
"//dataplane/dplaneopts",
"//fault",
"//gnmi",
"//gnmi/fakedevice",
"//gnmi/oc",
"//gnmi/reconciler",
"//gnoi",
"//gnsi",
"//gribi",
"//internal/config",
"//p4rt",
"//proto/config",
"//proto/fault",
"//sysrib",
"@com_github_golang_glog//:glog",
"@com_github_openconfig_gribigo//server",
"@io_k8s_klog_v2//:klog",
"@io_opentelemetry_go_otel//:otel",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//credentials",
"@org_golang_google_grpc//reflection",
],
)
go_test(
name = "lemming_test",
size = "medium",
srcs = ["lemming_test.go"],
embed = [":lemming"],
deps = [
"@com_github_openconfig_gnmi//errdiff",
"@com_github_openconfig_gnmi//proto/gnmi",
"@com_github_openconfig_gnoi//bgp",
"@com_github_openconfig_gnoi//cert",
"@com_github_openconfig_gnoi//diag",
"@com_github_openconfig_gnoi//factory_reset",
"@com_github_openconfig_gnoi//file",
"@com_github_openconfig_gnoi//healthz",
"@com_github_openconfig_gnoi//layer2",
"@com_github_openconfig_gnoi//mpls",
"@com_github_openconfig_gnoi//os",
"@com_github_openconfig_gnoi//otdr",
"@com_github_openconfig_gnoi//system",
"@com_github_openconfig_gnoi//wavelength_router",
"@org_golang_google_grpc//:grpc",
"@org_golang_google_grpc//credentials/insecure",
"@org_golang_google_protobuf//proto",
],
)