Remove unused controller code
This commit is contained in:
parent
33117f0ca8
commit
74657385b2
2 changed files with 2 additions and 56 deletions
|
|
@ -256,22 +256,6 @@ class L2Controller(object):
|
|||
for nat64map in self.nat64_map[self.mode]:
|
||||
self.static_nat64_mapping(**nat64map)
|
||||
|
||||
|
||||
# Disable icmp handling in the controller
|
||||
# for v6addr in self.v6_addresses[self.mode]:
|
||||
# log.debug("Adding v6 address: {}".format(v6addr))
|
||||
|
||||
# icmp6_addr = self.gen_ndp_multicast_addr(v6addr)
|
||||
|
||||
# another_addr = v6addr +1
|
||||
# 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(icmp6_addr)], [str(self.task['ICMP6_NS'])])
|
||||
|
||||
# # 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'])])
|
||||
|
||||
def static_nat64_mapping(self, v6_src, v6_dst, v4_src, v4_dst):
|
||||
"""
|
||||
Currently using destination only matching due to non priority
|
||||
|
|
@ -299,46 +283,6 @@ class L2Controller(object):
|
|||
str(v6_dst.network_address)]
|
||||
)
|
||||
|
||||
# self.controller.table_add("nat64_icmp6",
|
||||
# "nat64_icmp6_echo_request",
|
||||
# [str(v6_dst),
|
||||
# str(table_proto['ICMP6_ECHO_REQUEST'])
|
||||
# ],
|
||||
# [str(v6_src.network_address),
|
||||
# str(v4_dst.network_address),
|
||||
# str(v6_dst.network_address)]
|
||||
# )
|
||||
|
||||
# self.controller.table_add("nat64_icmp6",
|
||||
# "nat64_icmp6_echo_reply",
|
||||
# [str(v6_dst),
|
||||
# str(table_proto['ICMP6_ECHO_REPLY'])
|
||||
# ],
|
||||
# [str(v6_src.network_address),
|
||||
# str(v4_dst.network_address),
|
||||
# str(v6_dst.network_address)]
|
||||
# )
|
||||
|
||||
# self.controller.table_add("nat46_icmp",
|
||||
# "nat46_icmp_echo_reply",
|
||||
# [str(v4_dst),
|
||||
# str(table_proto['ICMP_ECHO_REPLY'])
|
||||
# ],
|
||||
# [str(v6_src.network_address),
|
||||
# str(v4_dst.network_address),
|
||||
# str(v6_dst.network_address)]
|
||||
# )
|
||||
|
||||
# self.controller.table_add("nat46_icmp",
|
||||
# "nat46_icmp_echo_request",
|
||||
# [str(v4_dst),
|
||||
# str(table_proto['ICMP_ECHO_REQUEST'])
|
||||
# ],
|
||||
# [str(v6_src.network_address),
|
||||
# str(v4_dst.network_address),
|
||||
# str(v6_dst.network_address)]
|
||||
# )
|
||||
|
||||
|
||||
def config_hosts(self):
|
||||
""" Assumptions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue