blob: 6b0d4db9ec34a8f851fec70f7aa7f3ab35e3cf21 [file] [log] [blame]
Yi Tsenge671fc92018-10-31 15:34:30 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2
3# FIXME: Currently gNMI proto file uses incorrect path to import "gnmi_ext.proto"
4# Temporary use patch from ONF before gNMI team fix it.
5
6GNMI_COMMIT = "onos"
7GNMI_SHA = "0c4d5f168cb142f8135171204dac3ff8840a147f51fa361079f42fa585bec2ce"
8
9def generate_gnmi():
10 http_archive(
11 name = "com_github_openconfig_gnmi",
12 urls = ["https://github.com/opennetworkinglab/gnmi/archive/%s.zip" % GNMI_COMMIT],
13 sha256 = GNMI_SHA,
14 strip_prefix = "gnmi-%s/proto" % GNMI_COMMIT,
15 build_file = "//tools/build/bazel:gnmi_BUILD",
16 )