blob: 58f727786a10bfd1f56163a0188cdb4c140e3f58 [file] [log] [blame]
Andrea Campanella31bcdcd2017-09-19 16:35:44 +09001COMPILE_DEPS = [
2 '//lib:CORE_DEPS',
3 '//lib:minimal-json',
4 '//incubator/bmv2/model:onos-incubator-bmv2-model',
5 '//apps/pi-demo/common:onos-apps-pi-demo-common',
6 '//drivers/default:onos-drivers-default',
7 '//drivers/p4runtime:onos-drivers-p4runtime',
8]
9
10osgi_jar (
11 deps = COMPILE_DEPS,
12)
13
14BUNDLES = [
15 '//apps/pi-demo/tor:onos-apps-pi-demo-tor',
16 '//apps/pi-demo/common:onos-apps-pi-demo-common',
17 '//drivers/default:onos-drivers-default',
18 '//incubator/bmv2/model:onos-incubator-bmv2-model',
19]
20
21onos_app (
22 app_name = 'org.onosproject.pi-tor',
23 title = 'PI Demo ECMP Fabric',
24 category = 'Traffic Steering',
25 url = 'http://onosproject.org',
26 description = 'Provides ECMP support for a 2-stage clos fabric topology of PI-enabled devices',
27 included_bundles = BUNDLES,
28 required_apps = [
29 # FIXME: there should be no dependendcy on a driver here.
30 # However, we depend on the DefaultP4Interpreter that currently lives in the p4runtime
31 # driver. Bringing up the whole app avoids to specify all transitive runtime dependencies
32 # as bundles. DefaultP4Interpreter and other pipeconf-related stuff should leave in a
33 # separate location, outside the drivers.
34 'org.onosproject.drivers.p4runtime'
35 ]
36)