'Test port create with an IPv6 subnet incl in fixed IPs.'

def _test_create_port_with_ipv6_subnet_in_fixed_ips(self, addr_mode, ipv6_pd=False):

    with self.network(name='net') as network:
        subnet = self._make_v6_subnet(network, addr_mode, ipv6_pd)
        subnet_id = subnet['subnet']['id']
        fixed_ips = [{'subnet_id': subnet_id}]
        with self.port(subnet=subnet, fixed_ips=fixed_ips) as port:
            port_fixed_ips = port['port']['fixed_ips']
            self.assertEqual(1, len(port_fixed_ips))
            if (addr_mode == constants.IPV6_SLAAC):
                exp_ip_addr = self._calc_ipv6_addr_by_EUI64(port, subnet)
                self.assertEqual(exp_ip_addr, port_fixed_ips[0]['ip_address'])
            self.assertIn(port_fixed_ips[0]['ip_address'], netaddr.IPNetwork(subnet['subnet']['cidr']))
