@Test public void getTableIdsTest() { assertEquals(tableOffset + TABLEID_PORTSECURITY, manager.getTABLEID_PORTSECURITY()); assertEquals(tableOffset + TABLEID_INGRESS_NAT, manager.getTABLEID_INGRESS_NAT()); assertEquals(tableOffset + TABLEID_SOURCE_MAPPER, manager.getTABLEID_SOURCE_MAPPER()); assertEquals(tableOffset + TABLEID_DESTINATION_MAPPER, manager.getTABLEID_DESTINATION_MAPPER()); assertEquals(tableOffset + TABLEID_POLICY_ENFORCER, manager.getTABLEID_POLICY_ENFORCER()); assertEquals(tableOffset + TABLEID_EGRESS_NAT, manager.getTABLEID_EGRESS_NAT()); assertEquals(tableOffset + TABLEID_EXTERNAL_MAPPER, manager.getTABLEID_EXTERNAL_MAPPER()); }
private List<Short> getTableIDs() { List<Short> tableIds = new ArrayList<>(); tableIds.add(getTABLEID_PORTSECURITY()); tableIds.add(getTABLEID_INGRESS_NAT()); tableIds.add(getTABLEID_SOURCE_MAPPER()); tableIds.add(getTABLEID_DESTINATION_MAPPER()); tableIds.add(getTABLEID_POLICY_ENFORCER()); tableIds.add(getTABLEID_EGRESS_NAT()); tableIds.add(getTABLEID_EXTERNAL_MAPPER()); return tableIds; }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { private List<Short> getTableIDs() { List<Short> tableIds = new ArrayList<>(); tableIds.add(getTABLEID_PORTSECURITY()); tableIds.add(getTABLEID_INGRESS_NAT()); tableIds.add(getTABLEID_SOURCE_MAPPER()); tableIds.add(getTABLEID_DESTINATION_MAPPER()); tableIds.add(getTABLEID_POLICY_ENFORCER()); tableIds.add(getTABLEID_EGRESS_NAT()); tableIds.add(getTABLEID_EXTERNAL_MAPPER()); return tableIds; } }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { private List<Short> getTableIDs() { List<Short> tableIds = new ArrayList<>(); tableIds.add(getTABLEID_PORTSECURITY()); tableIds.add(getTABLEID_INGRESS_NAT()); tableIds.add(getTABLEID_SOURCE_MAPPER()); tableIds.add(getTABLEID_DESTINATION_MAPPER()); tableIds.add(getTABLEID_POLICY_ENFORCER()); tableIds.add(getTABLEID_EGRESS_NAT()); tableIds.add(getTABLEID_EXTERNAL_MAPPER()); return tableIds; } PolicyManager(DataBroker dataBroker, SwitchManager switchManager, EndpointManager endpointManager,
            ScheduledExecutorService executor, short tableOffset); }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { private List<Short> getTableIDs() { List<Short> tableIds = new ArrayList<>(); tableIds.add(getTABLEID_PORTSECURITY()); tableIds.add(getTABLEID_INGRESS_NAT()); tableIds.add(getTABLEID_SOURCE_MAPPER()); tableIds.add(getTABLEID_DESTINATION_MAPPER()); tableIds.add(getTABLEID_POLICY_ENFORCER()); tableIds.add(getTABLEID_EGRESS_NAT()); tableIds.add(getTABLEID_EXTERNAL_MAPPER()); return tableIds; } PolicyManager(DataBroker dataBroker, SwitchManager switchManager, EndpointManager endpointManager,
            ScheduledExecutorService executor, short tableOffset); ListenableFuture<Void> changeOpenFlowTableOffset(final short tableOffset); short getTABLEID_PORTSECURITY(); short getTABLEID_INGRESS_NAT(); short getTABLEID_SOURCE_MAPPER(); short getTABLEID_DESTINATION_MAPPER(); short getTABLEID_POLICY_ENFORCER(); short getTABLEID_EGRESS_NAT(); short getTABLEID_EXTERNAL_MAPPER(); short getTABLEID_SFC_EGRESS(); short getTABLEID_SFC_INGRESS(); TableId verifyMaxTableId(short tableOffset); @Override void switchReady(final NodeId nodeId); @Override void switchRemoved(NodeId sw); @Override void switchUpdated(NodeId sw); @Override void endpointUpdated(EpKey epKey); @Override void nodeEndpointUpdated(NodeId nodeId, EpKey epKey); @Override void groupEndpointUpdated(EgKey egKey, EpKey epKey); @Override void onDataTreeChanged(Collection<DataTreeModification<ResolvedPolicy>> changes); void setLearningMode(LearningMode learningMode); @Override void close(); }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { private List<Short> getTableIDs() { List<Short> tableIds = new ArrayList<>(); tableIds.add(getTABLEID_PORTSECURITY()); tableIds.add(getTABLEID_INGRESS_NAT()); tableIds.add(getTABLEID_SOURCE_MAPPER()); tableIds.add(getTABLEID_DESTINATION_MAPPER()); tableIds.add(getTABLEID_POLICY_ENFORCER()); tableIds.add(getTABLEID_EGRESS_NAT()); tableIds.add(getTABLEID_EXTERNAL_MAPPER()); return tableIds; } PolicyManager(DataBroker dataBroker, SwitchManager switchManager, EndpointManager endpointManager,
            ScheduledExecutorService executor, short tableOffset); ListenableFuture<Void> changeOpenFlowTableOffset(final short tableOffset); short getTABLEID_PORTSECURITY(); short getTABLEID_INGRESS_NAT(); short getTABLEID_SOURCE_MAPPER(); short getTABLEID_DESTINATION_MAPPER(); short getTABLEID_POLICY_ENFORCER(); short getTABLEID_EGRESS_NAT(); short getTABLEID_EXTERNAL_MAPPER(); short getTABLEID_SFC_EGRESS(); short getTABLEID_SFC_INGRESS(); TableId verifyMaxTableId(short tableOffset); @Override void switchReady(final NodeId nodeId); @Override void switchRemoved(NodeId sw); @Override void switchUpdated(NodeId sw); @Override void endpointUpdated(EpKey epKey); @Override void nodeEndpointUpdated(NodeId nodeId, EpKey epKey); @Override void groupEndpointUpdated(EgKey egKey, EpKey epKey); @Override void onDataTreeChanged(Collection<DataTreeModification<ResolvedPolicy>> changes); void setLearningMode(LearningMode learningMode); @Override void close();  }