-
Notifications
You must be signed in to change notification settings - Fork 9
/
BUILD
64 lines (61 loc) · 2.12 KB
/
BUILD
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
load("@bazel_gazelle//:def.bzl", "gazelle")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:prefix github.com/openconfig/lemming
# gazelle:resolve proto proto google/rpc/status.proto @googleapis//google/rpc:status_proto
# gazelle:resolve proto go google/rpc/status.proto @org_golang_google_genproto_googleapis_rpc//status
# gazelle:resolve go github.com/p4lang/p4runtime/go/p4/v1 @com_github_p4lang_p4runtime//:p4runtime_go_proto
# gazelle:build_file_name BUILD
gazelle(
name = "gazelle",
)
go_library(
name = "lemming",
srcs = ["lemming.go"],
importpath = "github.com/openconfig/lemming",
visibility = ["//visibility:public"],
deps = [
"//bgp",
"//dataplane",
"//dataplane/dplaneopts",
"//gnmi",
"//gnmi/fakedevice",
"//gnmi/oc",
"//gnmi/reconciler",
"//gnoi",
"//gnsi",
"//gribi",
"//p4rt",
"//sysrib",
"@com_github_golang_glog//:glog",
"@com_github_openconfig_gribigo//server",
"@io_k8s_klog_v2//:klog",
"@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",
],
)