Thomas Vachuska | 13433eb | 2019-12-02 11:11:13 -0800 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 2 | |
| 3 | TOPO_COMMIT = "8866b0a658247683bd4b852839ce91c6ba60f6ac" |
| 4 | TOPO_SHA = "dc63356c3d34de18b0afdf04cce01f6de83e2b7264de177e55c0595b05dbcd07" |
| 5 | |
| 6 | def generate_topo_device(): |
| 7 | http_archive( |
| 8 | name = "com_github_onosproject_onos_topo", |
| 9 | urls = ["https://github.com/onosproject/onos-topo/archive/%s.zip" % TOPO_COMMIT], |
| 10 | sha256 = TOPO_SHA, |
| 11 | strip_prefix = "onos-topo-%s/api" % TOPO_COMMIT, |
| 12 | build_file = "//tools/build/bazel:topo_BUILD", |
| 13 | ) |