NSX|V3 exclude multicast addresses from NSX IPAM
The NSX ipam (ip-pools) does not support multicast addresses. The IPAM driver should skip those subnets and fallback to the default (neutron) ipam implementation. Change-Id: If65ec19b267edb33088563db29ceee3b7d90a95e
This commit is contained in:
parent
a373703b17
commit
2b101cd177
@ -57,6 +57,11 @@ class Nsxv3IpamDriver(common.NsxAbstractIpamDriver):
|
|||||||
ranges = []
|
ranges = []
|
||||||
return ranges
|
return ranges
|
||||||
|
|
||||||
|
def _is_supported_net(self, subnet_request):
|
||||||
|
"""This driver doesn't support multicast cidrs"""
|
||||||
|
net = netaddr.IPNetwork(subnet_request.subnet_cidr[0])
|
||||||
|
return not net.is_multicast()
|
||||||
|
|
||||||
def allocate_backend_pool(self, subnet_request):
|
def allocate_backend_pool(self, subnet_request):
|
||||||
"""Create a pool on the NSX backend and return its ID"""
|
"""Create a pool on the NSX backend and return its ID"""
|
||||||
# name/description length on backend is long, so there is no problem
|
# name/description length on backend is long, so there is no problem
|
||||||
|
Loading…
x
Reference in New Issue
Block a user