Abstracting switch table IDs so that sub classes can override for Dell/OVS switches
diff --git a/src/main/java/net/onrc/onos/core/drivermanager/OFSwitchImplDellOSR.java b/src/main/java/net/onrc/onos/core/drivermanager/OFSwitchImplDellOSR.java
index 6c12643..6426a6f 100644
--- a/src/main/java/net/onrc/onos/core/drivermanager/OFSwitchImplDellOSR.java
+++ b/src/main/java/net/onrc/onos/core/drivermanager/OFSwitchImplDellOSR.java
@@ -9,7 +9,19 @@
*/
public class OFSwitchImplDellOSR extends OFSwitchImplSpringOpenTTP {
+ /* Table IDs to be used for Dell Open Segment Routers*/
+ private static final int DELL_TABLE_VLAN = 10;
+ private static final int DELL_TABLE_TMAC = 20;
+ private static final int DELL_TABLE_IPv4_UNICAST = 30;
+ private static final int DELL_TABLE_MPLS = 25;
+ private static final int DELL_TABLE_ACL = 40;
+
public OFSwitchImplDellOSR(OFDescStatsReply desc, boolean usePipeline13) {
super(desc, usePipeline13);
+ setVlanTableId(DELL_TABLE_VLAN);
+ setTmacTableId(DELL_TABLE_TMAC);
+ setIpv4UnicastTableId(DELL_TABLE_IPv4_UNICAST);
+ setMplsTableId(DELL_TABLE_MPLS);
+ setAclTableId(DELL_TABLE_ACL);
}
}
\ No newline at end of file