@Test public void testAddTapPort_WithBridgeDomain() throws ExecutionException, InterruptedException { ReadWriteTransaction rwTx = dataBroker.newReadWriteTransaction(); TapPortCommand addCommand = TapPortCommand.builder() .setOperation(General.Operations.PUT) .setInterfaceName(INTERFACE_NAME) .setTapName(TAP_NAME) .setDescription(DESCRIPTION) .setDeviceInstance(DEVICE_ID) .setPhysAddress(MAC_ADDRESS) .setBridgeDomain(BRIDGE_DOMAIN) .setEnabled(true) .build(); Optional<Interface> optional = executeCommand(rwTx, addCommand); Assert.assertTrue(optional.isPresent()); Assert.assertEquals(BASIC_INTERFACE_WITH_BD, optional.get()); }
public static TapPortCommandBuilder builder() { return new TapPortCommandBuilder(); }
TapPortCommand extends AbstractInterfaceCommand { public static TapPortCommandBuilder builder() { return new TapPortCommandBuilder(); } }
TapPortCommand extends AbstractInterfaceCommand { public static TapPortCommandBuilder builder() { return new TapPortCommandBuilder(); } private  TapPortCommand(TapPortCommandBuilder builder); }
TapPortCommand extends AbstractInterfaceCommand { public static TapPortCommandBuilder builder() { return new TapPortCommandBuilder(); } private  TapPortCommand(TapPortCommandBuilder builder); static TapPortCommandBuilder builder(); PhysAddress getPhysAddress(); Long getDeviceInstance(); String getTapName(); @Override InterfaceBuilder getInterfaceBuilder(); @Override String toString(); }
TapPortCommand extends AbstractInterfaceCommand { public static TapPortCommandBuilder builder() { return new TapPortCommandBuilder(); } private  TapPortCommand(TapPortCommandBuilder builder); static TapPortCommandBuilder builder(); PhysAddress getPhysAddress(); Long getDeviceInstance(); String getTapName(); @Override InterfaceBuilder getInterfaceBuilder(); @Override String toString();  }