@Test public void testWriteNetworkClientEntitiesToTenant() throws Exception { DataBroker dataBroker = getDataBroker(); ReadWriteTransaction rwTx = dataBroker.newReadWriteTransaction(); NetworkClient.writeNetworkClientEntitiesToTenant(new TenantId(tenantID), rwTx); rwTx.submit().get(); PolicyAssert.assertEndpointGroupExists(dataBroker, tenantID, NetworkClient.EPG_ID.getValue()); }
public static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx) { writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.endpointGroupIid(tenantId, EPG_ID), EPG, true); }
NetworkClient extends ServiceUtil { public static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx) { writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.endpointGroupIid(tenantId, EPG_ID), EPG, true); } }
NetworkClient extends ServiceUtil { public static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx) { writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.endpointGroupIid(tenantId, EPG_ID), EPG, true); }  }
NetworkClient extends ServiceUtil { public static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx) { writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.endpointGroupIid(tenantId, EPG_ID), EPG, true); }  static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx); static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector,
            WriteTransaction writeTx); }
NetworkClient extends ServiceUtil { public static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx) { writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.endpointGroupIid(tenantId, EPG_ID), EPG, true); }  static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx); static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector,
            WriteTransaction writeTx); static final EndpointGroupId EPG_ID; static final EndpointGroup EPG; }