@Test public void testWriteConsumerNamedSelectorWithoutKey() throws Exception { ConsumerNamedSelectorBuilder cnsb = new ConsumerNamedSelectorBuilder(); ReadWriteTransaction rwTx = getDataBroker().newReadWriteTransaction(); exception.expect(IllegalArgumentException.class); NetworkClient.writeConsumerNamedSelector(new TenantId(tenantID), cnsb.build(), rwTx); }
public static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector, WriteTransaction writeTx) { Preconditions.checkNotNull(consumerNamedSelector); writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.consumerNamedSelectorIid(tenantId, EPG_ID, consumerNamedSelector.getName()), consumerNamedSelector, true); }
NetworkClient extends ServiceUtil { public static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector, WriteTransaction writeTx) { Preconditions.checkNotNull(consumerNamedSelector); writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.consumerNamedSelectorIid(tenantId, EPG_ID, consumerNamedSelector.getName()), consumerNamedSelector, true); } }
NetworkClient extends ServiceUtil { public static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector, WriteTransaction writeTx) { Preconditions.checkNotNull(consumerNamedSelector); writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.consumerNamedSelectorIid(tenantId, EPG_ID, consumerNamedSelector.getName()), consumerNamedSelector, true); }  }
NetworkClient extends ServiceUtil { public static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector, WriteTransaction writeTx) { Preconditions.checkNotNull(consumerNamedSelector); writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.consumerNamedSelectorIid(tenantId, EPG_ID, consumerNamedSelector.getName()), consumerNamedSelector, true); }  static void writeNetworkClientEntitiesToTenant(TenantId tenantId, WriteTransaction writeTx); static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector,
            WriteTransaction writeTx); }
NetworkClient extends ServiceUtil { public static void writeConsumerNamedSelector(TenantId tenantId, ConsumerNamedSelector consumerNamedSelector, WriteTransaction writeTx) { Preconditions.checkNotNull(consumerNamedSelector); writeTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.consumerNamedSelectorIid(tenantId, EPG_ID, consumerNamedSelector.getName()), consumerNamedSelector, 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; }