use network_address for multicast base
This commit is contained in:
parent
3dc56677a1
commit
3047750add
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class L2Controller(object):
|
||||||
|
|
||||||
def gen_ndp_multicast_addr(self, addr):
|
def gen_ndp_multicast_addr(self, addr):
|
||||||
""" append the 24 bit of the address to the multicast address"""
|
""" 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
|
@staticmethod
|
||||||
def add_host_ips(host, net, ipaddr, dev):
|
def add_host_ips(host, net, ipaddr, dev):
|
||||||
|
|
Loading…
Reference in a new issue