Merge "NSX|V3: Fix ipam to check subnets carefully"
This commit is contained in:
commit
33a93d8473
|
@ -59,6 +59,8 @@ class Nsxv3IpamDriver(common.NsxAbstractIpamDriver):
|
||||||
|
|
||||||
def _is_supported_net(self, subnet_request):
|
def _is_supported_net(self, subnet_request):
|
||||||
"""This driver doesn't support multicast cidrs"""
|
"""This driver doesn't support multicast cidrs"""
|
||||||
|
if not hasattr(subnet_request, "subnet_cidr"):
|
||||||
|
return True
|
||||||
net = netaddr.IPNetwork(subnet_request.subnet_cidr[0])
|
net = netaddr.IPNetwork(subnet_request.subnet_cidr[0])
|
||||||
return not net.is_multicast()
|
return not net.is_multicast()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue