Renamed tofino driver to barefoot

For consistency with other drivers.

Also fixed ClassDefNotFoundException when loading driver.

Change-Id: If000d9b9fdae659aa32e0a5898885b52bc5ca89b
This commit is contained in:
Carmelo Cascone 2018-01-31 14:48:09 -08:00
parent b531b6889c
commit d519b55447
2 changed files with 5 additions and 2 deletions

View File

@ -19,6 +19,7 @@ package org.onosproject.drivers.barefoot;
import com.google.common.collect.Lists;
import org.apache.commons.io.IOUtils;
import org.onosproject.drivers.p4runtime.AbstractP4RuntimePipelineProgrammable;
import org.onosproject.net.behaviour.PiPipelineProgrammable;
import org.onosproject.net.pi.model.PiPipeconf;
import org.onosproject.net.pi.model.PiPipeconf.ExtensionType;
@ -36,7 +37,9 @@ import static org.onosproject.net.pi.model.PiPipeconf.ExtensionType.TOFINO_CONTE
/**
* Implementation of the PiPipelineProgrammable behaviour for a Tofino-based switch.
*/
public class TofinoPipelineProgrammable extends AbstractP4RuntimePipelineProgrammable {
public class TofinoPipelineProgrammable
extends AbstractP4RuntimePipelineProgrammable
implements PiPipelineProgrammable {
@Override
public Optional<PiPipeconf> getDefaultPipeconf() {

View File

@ -15,7 +15,7 @@
~ limitations under the License.
-->
<drivers>
<driver name="tofino" manufacturer="Barefoot Networks" hwVersion="1.0" swVersion="1.0" extends="p4runtime">
<driver name="barefoot" manufacturer="Barefoot Networks" hwVersion="1.0" swVersion="1.0" extends="p4runtime">
<behaviour api="org.onosproject.net.behaviour.PiPipelineProgrammable"
impl="org.onosproject.drivers.barefoot.TofinoPipelineProgrammable"/>
</driver>