@Test public void groupEndpointUpdatedTest() throws Exception { EgKey egKey = new EgKey( new TenantId("9040b0be-15a0-40ee-a6ca-b19b454c7697"), new EndpointGroupId("dc630fd5-5ca3-42ea-8baa-aa80a38df5e3")); EpKey epKey = new EpKey( new L2ContextId("10fdfde9-c0f2-412d-822d-59d38711bde8"), new MacAddress("24:77:03:D8:E9:B4")); }
@Override public void groupEndpointUpdated(EgKey egKey, EpKey epKey) { if (dataBroker == null) { LOG.error("DataBroker is null. Cannot write followed-epg {}", epKey); return; } WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); FollowedEndpointGroup followedEpg = new FollowedEndpointGroupBuilder().setId(egKey.getEgId()).build(); wTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.followedEndpointgroupIid(OFOverlayRenderer.RENDERER_NAME, egKey.getTenantId(), egKey.getEgId()), followedEpg, true); DataStoreHelper.submitToDs(wTx); scheduleUpdate(); }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { @Override public void groupEndpointUpdated(EgKey egKey, EpKey epKey) { if (dataBroker == null) { LOG.error("DataBroker is null. Cannot write followed-epg {}", epKey); return; } WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); FollowedEndpointGroup followedEpg = new FollowedEndpointGroupBuilder().setId(egKey.getEgId()).build(); wTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.followedEndpointgroupIid(OFOverlayRenderer.RENDERER_NAME, egKey.getTenantId(), egKey.getEgId()), followedEpg, true); DataStoreHelper.submitToDs(wTx); scheduleUpdate(); } }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { @Override public void groupEndpointUpdated(EgKey egKey, EpKey epKey) { if (dataBroker == null) { LOG.error("DataBroker is null. Cannot write followed-epg {}", epKey); return; } WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); FollowedEndpointGroup followedEpg = new FollowedEndpointGroupBuilder().setId(egKey.getEgId()).build(); wTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.followedEndpointgroupIid(OFOverlayRenderer.RENDERER_NAME, egKey.getTenantId(), egKey.getEgId()), followedEpg, true); DataStoreHelper.submitToDs(wTx); scheduleUpdate(); } PolicyManager(DataBroker dataBroker, SwitchManager switchManager, EndpointManager endpointManager,
            ScheduledExecutorService executor, short tableOffset); }
PolicyManager implements SwitchListener, EndpointListener, ClusteredDataTreeChangeListener<ResolvedPolicy>, Closeable { @Override public void groupEndpointUpdated(EgKey egKey, EpKey epKey) { if (dataBroker == null) { LOG.error("DataBroker is null. Cannot write followed-epg {}", epKey); return; } WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); FollowedEndpointGroup followedEpg = new FollowedEndpointGroupBuilder().setId(egKey.getEgId()).build(); wTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.followedEndpointgroupIid(OFOverlayRenderer.RENDERER_NAME, egKey.getTenantId(), egKey.getEgId()), followedEpg, true); DataStoreHelper.submitToDs(wTx); scheduleUpdate(); } 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 { @Override public void groupEndpointUpdated(EgKey egKey, EpKey epKey) { if (dataBroker == null) { LOG.error("DataBroker is null. Cannot write followed-epg {}", epKey); return; } WriteTransaction wTx = dataBroker.newWriteOnlyTransaction(); FollowedEndpointGroup followedEpg = new FollowedEndpointGroupBuilder().setId(egKey.getEgId()).build(); wTx.put(LogicalDatastoreType.OPERATIONAL, IidFactory.followedEndpointgroupIid(OFOverlayRenderer.RENDERER_NAME, egKey.getTenantId(), egKey.getEgId()), followedEpg, true); DataStoreHelper.submitToDs(wTx); scheduleUpdate(); } 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();  }