@Test public void addActiveIovisorModuleTest() { Assert.assertFalse(iovisorModuleManager.addActiveIovisorModule(iovisorModuleInstance1.getId())); Assert.assertTrue(iovisorModuleManager.addProvisionedIovisorModule(iovisorModuleInstance1)); Assert.assertTrue(iovisorModuleManager.addActiveIovisorModule(iovisorModuleInstance1.getId())); }
public boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId) { IovisorModuleInstance iovisorModuleInstance = getProvisionedIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { LOG.error("Cannot Activate IovisorModule {}, no provisioned IovisorModule found.", iovisorModuleId.getValue()); return false; } return addIovisorModule(iovisorModuleInstance, LogicalDatastoreType.OPERATIONAL); }
IovisorModuleManager implements AutoCloseable { public boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId) { IovisorModuleInstance iovisorModuleInstance = getProvisionedIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { LOG.error("Cannot Activate IovisorModule {}, no provisioned IovisorModule found.", iovisorModuleId.getValue()); return false; } return addIovisorModule(iovisorModuleInstance, LogicalDatastoreType.OPERATIONAL); } }
IovisorModuleManager implements AutoCloseable { public boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId) { IovisorModuleInstance iovisorModuleInstance = getProvisionedIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { LOG.error("Cannot Activate IovisorModule {}, no provisioned IovisorModule found.", iovisorModuleId.getValue()); return false; } return addIovisorModule(iovisorModuleInstance, LogicalDatastoreType.OPERATIONAL); } IovisorModuleManager(DataBroker passedDataBroker); }
IovisorModuleManager implements AutoCloseable { public boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId) { IovisorModuleInstance iovisorModuleInstance = getProvisionedIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { LOG.error("Cannot Activate IovisorModule {}, no provisioned IovisorModule found.", iovisorModuleId.getValue()); return false; } return addIovisorModule(iovisorModuleInstance, LogicalDatastoreType.OPERATIONAL); } IovisorModuleManager(DataBroker passedDataBroker); boolean addProvisionedIovisorModule(IovisorModuleInstance iovisorModuleInstance); boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId); boolean addIovisorModule(IovisorModuleInstance iovisorModuleInstance, LogicalDatastoreType dataStoreType); IovisorModuleInstance getActiveIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstance getProvisionedIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstances getIovisorModules(ReadOnlyTransaction rTx, LogicalDatastoreType dataStoreType); List<IovisorModuleInstanceId> getIovisorModulesByTenantByEpg(TenantId tenantId, EndpointGroupId epgId); @Override void close(); }
IovisorModuleManager implements AutoCloseable { public boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId) { IovisorModuleInstance iovisorModuleInstance = getProvisionedIovisorModule(iovisorModuleId); if (iovisorModuleInstance == null) { LOG.error("Cannot Activate IovisorModule {}, no provisioned IovisorModule found.", iovisorModuleId.getValue()); return false; } return addIovisorModule(iovisorModuleInstance, LogicalDatastoreType.OPERATIONAL); } IovisorModuleManager(DataBroker passedDataBroker); boolean addProvisionedIovisorModule(IovisorModuleInstance iovisorModuleInstance); boolean addActiveIovisorModule(IovisorModuleId iovisorModuleId); boolean addIovisorModule(IovisorModuleInstance iovisorModuleInstance, LogicalDatastoreType dataStoreType); IovisorModuleInstance getActiveIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstance getProvisionedIovisorModule(IovisorModuleId iovisorModuleId); IovisorModuleInstances getIovisorModules(ReadOnlyTransaction rTx, LogicalDatastoreType dataStoreType); List<IovisorModuleInstanceId> getIovisorModulesByTenantByEpg(TenantId tenantId, EndpointGroupId epgId); @Override void close();  }