@Test public void deleteDataTest() throws InterruptedException, ExecutionException { deleteRendererNode(nodeIid); assertFalse(readHostconfig(nodeId).isPresent()); }
private void deleteData(RendererNode rendererNode) { NodeKey nodeKey = rendererNode.getNodePath().firstKeyOf(Node.class); ReadWriteTransaction rwTx = dataProvider.newReadWriteTransaction(); DataStoreHelper.removeIfExists(LogicalDatastoreType.OPERATIONAL, hostconfigIid(nodeKey.getNodeId()), rwTx); DataStoreHelper.submitToDs(rwTx); LOG.info("Hostconfig data removed from DS for VPP node {}", nodeKey); }
VppNodeListener extends DataTreeChangeHandler<RendererNode> { private void deleteData(RendererNode rendererNode) { NodeKey nodeKey = rendererNode.getNodePath().firstKeyOf(Node.class); ReadWriteTransaction rwTx = dataProvider.newReadWriteTransaction(); DataStoreHelper.removeIfExists(LogicalDatastoreType.OPERATIONAL, hostconfigIid(nodeKey.getNodeId()), rwTx); DataStoreHelper.submitToDs(rwTx); LOG.info("Hostconfig data removed from DS for VPP node {}", nodeKey); } }
VppNodeListener extends DataTreeChangeHandler<RendererNode> { private void deleteData(RendererNode rendererNode) { NodeKey nodeKey = rendererNode.getNodePath().firstKeyOf(Node.class); ReadWriteTransaction rwTx = dataProvider.newReadWriteTransaction(); DataStoreHelper.removeIfExists(LogicalDatastoreType.OPERATIONAL, hostconfigIid(nodeKey.getNodeId()), rwTx); DataStoreHelper.submitToDs(rwTx); LOG.info("Hostconfig data removed from DS for VPP node {}", nodeKey); } VppNodeListener(DataBroker dataBroker, SocketInfo socketInfo); }
VppNodeListener extends DataTreeChangeHandler<RendererNode> { private void deleteData(RendererNode rendererNode) { NodeKey nodeKey = rendererNode.getNodePath().firstKeyOf(Node.class); ReadWriteTransaction rwTx = dataProvider.newReadWriteTransaction(); DataStoreHelper.removeIfExists(LogicalDatastoreType.OPERATIONAL, hostconfigIid(nodeKey.getNodeId()), rwTx); DataStoreHelper.submitToDs(rwTx); LOG.info("Hostconfig data removed from DS for VPP node {}", nodeKey); } VppNodeListener(DataBroker dataBroker, SocketInfo socketInfo);  }
VppNodeListener extends DataTreeChangeHandler<RendererNode> { private void deleteData(RendererNode rendererNode) { NodeKey nodeKey = rendererNode.getNodePath().firstKeyOf(Node.class); ReadWriteTransaction rwTx = dataProvider.newReadWriteTransaction(); DataStoreHelper.removeIfExists(LogicalDatastoreType.OPERATIONAL, hostconfigIid(nodeKey.getNodeId()), rwTx); DataStoreHelper.submitToDs(rwTx); LOG.info("Hostconfig data removed from DS for VPP node {}", nodeKey); } VppNodeListener(DataBroker dataBroker, SocketInfo socketInfo);  static final RendererName VPP_RENDERER_NAME; }