Add stratum-bmv2 driver to be used with BMv2 running with Stratum
Change-Id: I5d7d642459fecdb3ce3063557570faab5873dd40
(cherry picked from commit 1678b0cec9e4eb62f98a831719646f452469e881)
diff --git a/drivers/bmv2/BUILD b/drivers/bmv2/BUILD
index d5356c3..5cf6f45 100644
--- a/drivers/bmv2/BUILD
+++ b/drivers/bmv2/BUILD
@@ -35,8 +35,8 @@
description = "Adds support for BMv2 devices.",
included_bundles = BUNDLES,
required_apps = [
+ "org.onosproject.drivers.stratum",
"org.onosproject.drivers.p4runtime",
- "org.onosproject.drivers.gnmi",
"org.onosproject.pipelines.basic",
],
title = "BMv2 Drivers",
diff --git a/drivers/bmv2/src/main/resources/bmv2-drivers.xml b/drivers/bmv2/src/main/resources/bmv2-drivers.xml
index 502d654..9638f9f 100644
--- a/drivers/bmv2/src/main/resources/bmv2-drivers.xml
+++ b/drivers/bmv2/src/main/resources/bmv2-drivers.xml
@@ -26,5 +26,11 @@
impl="org.onosproject.drivers.bmv2.Bmv2DeviceHandshaker"/>
-->
</driver>
+
+ <driver name="stratum-bmv2" manufacturer="Open Networking Foundation"
+ hwVersion="BMv2 simple_switch" swVersion="Stratum" extends="stratum">
+ <behaviour api="org.onosproject.net.behaviour.PiPipelineProgrammable"
+ impl="org.onosproject.drivers.bmv2.Bmv2PipelineProgrammable"/>
+ </driver>
</drivers>