disable icmp6 in controller
This commit is contained in:
parent
87d4154753
commit
42c68b1808
1 changed files with 12 additions and 10 deletions
|
@ -199,21 +199,23 @@ class L2Controller(object):
|
||||||
for v4route in self.v4_routes[self.mode]:
|
for v4route in self.v4_routes[self.mode]:
|
||||||
self.controller.table_add("v4_networks", "set_egress_port", [str(v4route['net'])], [str(v4route['port'])])
|
self.controller.table_add("v4_networks", "set_egress_port", [str(v4route['net'])], [str(v4route['port'])])
|
||||||
|
|
||||||
|
|
||||||
self.controller.table_clear("v6_addresses")
|
self.controller.table_clear("v6_addresses")
|
||||||
for v6addr in self.v6_addresses[self.mode]:
|
# Disable icmp handling in the controller
|
||||||
log.debug("Adding v6 address: {}".format(v6addr))
|
# for v6addr in self.v6_addresses[self.mode]:
|
||||||
|
# log.debug("Adding v6 address: {}".format(v6addr))
|
||||||
|
|
||||||
icmp6_addr = self.gen_ndp_multicast_addr(v6addr)
|
# icmp6_addr = self.gen_ndp_multicast_addr(v6addr)
|
||||||
|
|
||||||
another_addr = v6addr +1
|
# another_addr = v6addr +1
|
||||||
another_addr_ns = self.gen_ndp_multicast_addr(another_addr)
|
# another_addr_ns = self.gen_ndp_multicast_addr(another_addr)
|
||||||
|
|
||||||
self.controller.table_add("v6_addresses", "controller_reply", [str(v6addr)], [str(self.task['ICMP6_GENERAL'])])
|
# self.controller.table_add("v6_addresses", "controller_reply", [str(v6addr)], [str(self.task['ICMP6_GENERAL'])])
|
||||||
self.controller.table_add("v6_addresses", "controller_reply", [str(icmp6_addr)], [str(self.task['ICMP6_NS'])])
|
# self.controller.table_add("v6_addresses", "controller_reply", [str(icmp6_addr)], [str(self.task['ICMP6_NS'])])
|
||||||
|
|
||||||
# Experimental: controller does NDP, switch does ICMP6 echo reply
|
# # Experimental: controller does NDP, switch does ICMP6 echo reply
|
||||||
self.controller.table_add("v6_addresses", "controller_reply", [str(another_addr_ns)], [str(self.task['ICMP6_NS'])])
|
# self.controller.table_add("v6_addresses", "controller_reply", [str(another_addr_ns)], [str(self.task['ICMP6_NS'])])
|
||||||
self.controller.table_add("v6_addresses", "icmp6_echo_reply", [str(another_addr)])
|
# self.controller.table_add("v6_addresses", "icmp6_echo_reply", [str(another_addr)])
|
||||||
|
|
||||||
for nat64map in self.nat64_map[self.mode]:
|
for nat64map in self.nat64_map[self.mode]:
|
||||||
self.static_nat64_mapping(**nat64map)
|
self.static_nat64_mapping(**nat64map)
|
||||||
|
|
Loading…
Reference in a new issue