mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-12-17 07:11:27 +01:00
Renamed tofino driver to barefoot
For consistency with other drivers. Also fixed ClassDefNotFoundException when loading driver. Change-Id: If000d9b9fdae659aa32e0a5898885b52bc5ca89b
This commit is contained in:
parent
b531b6889c
commit
d519b55447
@ -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() {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user