[p4, controller] hack NDP reply

This commit is contained in:
Nico Schottelius 2019-02-28 10:56:22 +01:00
commit b29cf1a296
5 changed files with 229 additions and 12 deletions

View file

@ -110,6 +110,9 @@ class L2Controller(object):
self.controller.table_add("ndp", "multicast_pkg", [ndp_prefix, str(port)], [str(port)])
# Special rule for switch entries
self.controller.table_add("ndp_answer", "icmp6_neighbor_solicitation", ["ff02::1:ff00:42", "135"], ["2001:db8:61::42"])
def init_boilerplate(self, sw_name):
self.topo = Topology(db="topology.db")
self.sw_name = sw_name