Yi Tseng | 0f0ad3f | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 1 | load("@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 | |
| 6 | GNMI_COMMIT = "onos" |
| 7 | GNMI_SHA = "0c4d5f168cb142f8135171204dac3ff8840a147f51fa361079f42fa585bec2ce" |
| 8 | |
| 9 | def 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 | ) |