/** * @return a AllocationPool constructed with this Builder. */ public AllocationPool build() { return new AllocationPool(start, end); }
@Override public String toString() { return string().toString(); }
AllocationPool.builder().start("192.168.100.0").end("192.168.100.2").build() ); ImmutableSet<HostRoute> hostRoutes = ImmutableSet.of(
AllocationPool.builder().start("192.168.100.0").end("192.168.100.2").build() ); ImmutableSet<HostRoute> hostRoutes = ImmutableSet.of(
/** * @return a AllocationPool constructed with this Builder. */ public AllocationPool build() { return new AllocationPool(start, end); }
@Override public String toString() { return string().toString(); }
assertEquals(subnets.get(0).getId(), "0468a7a7-290d-4127-aedd-6c9449775a24"); assertEquals(subnets.get(0).getNetworkId(), "e6031bc2-901a-4c66-82da-f4c32ed89406"); assertEquals(subnets.get(0).getAllocationPools().iterator().next().getStart(), "192.168.199.2"); assertEquals(subnets.get(0).getAllocationPools().iterator().next().getEnd(), "192.168.199.254"); } finally { server.shutdown();