From 3047750addeb587c02138b221f0af47a58ea2189 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 4 Mar 2019 15:01:12 +0100 Subject: [PATCH] use network_address for multicast base --- p4app/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 353691e..cb3ac2a 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -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):