use network_address for multicast base

This commit is contained in:
Nico Schottelius 2019-03-04 15:01:12 +01:00
parent 3dc56677a1
commit 3047750add

View file

@ -86,7 +86,7 @@ class L2Controller(object):
def gen_ndp_multicast_addr(self, addr):
""" append the 24 bit of the address to the multicast address"""
return ipaddress.ip_address(int(self.info['ndp_multicast']) + (int(addr) & 0xffffff))
return ipaddress.ip_address(int(self.info['ndp_multicast'].network_address) + (int(addr) & 0xffffff))
@staticmethod
def add_host_ips(host, net, ipaddr, dev):