String ipv6PortId = portApi.create(networkId, CreatePortOptions.builder().name("JClouds-Live-IPv6-Port").fixedIps(getFixedAddresses(ipv6SubnetId)).build()).getId();
assertNotNull(ipv4PortId);
assertNotNull(ipv6PortId);
Port ipv4Port = portApi.get(ipv4PortId);
assertNotNull(ipv4Port);
assertEquals(ipv4Port.getId(), ipv4PortId);
assertEquals(ipv4Port.getName(), "JClouds-Live-IPv4-Port");
Port ipv6Port = portApi.get(ipv6PortId);
assertNotNull(ipv6Port);
assertEquals(ipv6Port.getId(), ipv6PortId);
assertEquals(ipv6Port.getName(), "JClouds-Live-IPv6-Port");
assertTrue(portApi.update(ipv4PortId, UpdatePortOptions.builder().name("Updated").build()));
Port updatedIpv4Port = portApi.get(ipv4PortId);
assertEquals(updatedIpv4Port.getName(), "Updated");
assertTrue(portApi.delete(ipv4PortId));
assertTrue(portApi.delete(ipv6PortId));
assertTrue(subnetApi.delete(ipv4SubnetId));
assertTrue(subnetApi.delete(ipv6SubnetId));