blob: 55b76b6cdc0aa1b58bfd74ad813123b11e26bb99 [file] [log] [blame]
Yi Tsenge671fc92018-10-31 15:34:30 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
Carmelo Cascone81fcfbe2019-03-13 15:54:16 -07003GNMI_COMMIT = "33a1865c302903e7a2e06f35960e6bc31e84b9f6"
4GNMI_SHA = "cfd412410589e8e019b90681649afdb602f410a0ac67cfa1186a20d73be43e58"
Yi Tsenge671fc92018-10-31 15:34:30 -07005
6def generate_gnmi():
7 http_archive(
8 name = "com_github_openconfig_gnmi",
Carmelo Cascone81fcfbe2019-03-13 15:54:16 -07009 urls = ["https://github.com/openconfig/gnmi/archive/%s.zip" % GNMI_COMMIT],
Yi Tsenge671fc92018-10-31 15:34:30 -070010 sha256 = GNMI_SHA,
11 strip_prefix = "gnmi-%s/proto" % GNMI_COMMIT,
12 build_file = "//tools/build/bazel:gnmi_BUILD",
13 )