@Test public void testAddLoopback_WithBridgeDomain() throws ExecutionException, InterruptedException { ReadWriteTransaction rwTx = dataBroker.newReadWriteTransaction(); LoopbackCommand addCommand = LoopbackCommand.builder() .setOperation(General.Operations.PUT) .setInterfaceName(INTERFACE_NAME) .setDescription(DESCRIPTION) .setBvi(true) .setPhysAddress(MAC_ADDRESS) .setIpPrefix(IP_PREFIX) .setIpAddress(IP_ADDRESS) .setBridgeDomain(BRIDGE_DOMAIN) .setEnabled(true) .build(); Assert.assertEquals(BRIDGE_DOMAIN, addCommand.getBridgeDomain()); Optional<Interface> optional = executeCommand(rwTx, addCommand); Assert.assertTrue(optional.isPresent()); Assert.assertEquals(BASIC_INTERFACE_WITH_BD, optional.get()); }
public static LoopbackCommandBuilder builder() { return new LoopbackCommandBuilder(); }
LoopbackCommand extends AbstractInterfaceCommand { public static LoopbackCommandBuilder builder() { return new LoopbackCommandBuilder(); } }
LoopbackCommand extends AbstractInterfaceCommand { public static LoopbackCommandBuilder builder() { return new LoopbackCommandBuilder(); } private  LoopbackCommand(LoopbackCommandBuilder builder); }
LoopbackCommand extends AbstractInterfaceCommand { public static LoopbackCommandBuilder builder() { return new LoopbackCommandBuilder(); } private  LoopbackCommand(LoopbackCommandBuilder builder); static LoopbackCommandBuilder builder(); boolean getBvi(); @Override InterfaceBuilder getInterfaceBuilder(); @Override String toString(); }
LoopbackCommand extends AbstractInterfaceCommand { public static LoopbackCommandBuilder builder() { return new LoopbackCommandBuilder(); } private  LoopbackCommand(LoopbackCommandBuilder builder); static LoopbackCommandBuilder builder(); boolean getBvi(); @Override InterfaceBuilder getInterfaceBuilder(); @Override String toString();  }