Also add required icmp6_type

This commit is contained in:
Nico Schottelius 2019-03-23 15:07:07 +01:00
commit 4d3641fc50
3 changed files with 5 additions and 5 deletions

View file

@ -179,19 +179,21 @@ class L2Controller(object):
def init_ndp_in_switch(self, addr):
icmp6_addr = self.gen_ndp_multicast_addr(addr)
icmp6_net = "{}/128".format(icmp6_addr)
icmp6_type = 135
mac_addr = self.info['mac_addr']
self.controller.table_add("icmp6",
"icmp6_neighbor_solicitation",
[str(icmp6_net)], [str(addr), str(mac_addr)])
[str(icmp6_net), str(icmp6_type)], [str(addr), str(mac_addr)])
def init_icmp6_echo_in_switch(self, addr):
icmp6_addr = addr
icmp6_type = 128
icmp6_net = "{}/128".format(icmp6_addr)
self.controller.table_add("icmp6",
"icmp6_echo_reply",
[str(icmp6_net)], [str(addr)])
[str(icmp6_net), str(icmp6_type)], [str(addr)])
def fill_tables(self):