[p4,controller] Begin to add icmp6 echo reply support + more NDP "fixes"
This commit is contained in:
parent
6b601a09f7
commit
c38eb0dfc4
5 changed files with 58 additions and 4 deletions
|
|
@ -110,8 +110,7 @@ class L2Controller(object):
|
|||
|
||||
self.controller.table_clear("v6_addresses")
|
||||
for v6addr in self.v6_addresses[self.mode]:
|
||||
self.controller.table_add("v6_addresses", "icmp6_answer", [v6addr['addr']], [v6addr['port']])
|
||||
|
||||
self.controller.table_add("v6_addresses", "icmp6_answer", [v6addr['addr']])
|
||||
|
||||
|
||||
def config_hosts(self):
|
||||
|
|
@ -133,6 +132,14 @@ class L2Controller(object):
|
|||
# mx h$i "ip -6 route add default via 2001:db8:6::42"
|
||||
|
||||
#for v4route in self.v4_routes[self.mode]:
|
||||
# Todo: add v4 routes / ip addresses
|
||||
|
||||
# Fake mac addresses - this gets REALLY messy now
|
||||
# for host in range(4):
|
||||
# macrange = [1, 2, 3, 4, 42]
|
||||
|
||||
# for mac in macrange:
|
||||
# subprocess.call(["mx", host, "ip", "addr", "add", ipaddr, "dev", dev])
|
||||
|
||||
|
||||
def debug_print_pkg(self, pkg, msg="INCOMING"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue