msg = (_("Router already has a port on subnet %s")
% subnet_id)
raise n_exc.BadRequest(resource='router', msg=msg)
+ # Ignore temporary Prefix Delegation CIDRs
+ if subnet_cidr == l3_constants.PROVISIONAL_IPV6_PD_PREFIX:
+ continue
sub_id = ip['subnet_id']
- cidr = self._core_plugin._get_subnet(context.elevated(),
- sub_id)['cidr']
+ cidr = self._core_plugin.get_subnet(context.elevated(),
+ sub_id)['cidr']
ipnet = netaddr.IPNetwork(cidr)
match1 = netaddr.all_matching_cidrs(new_ipnet, [cidr])
match2 = netaddr.all_matching_cidrs(ipnet, [subnet_cidr])