Disable multicast catchall by default
This commit is contained in:
parent
69e483caf7
commit
dd6986cf60
2 changed files with 21 additions and 3 deletions
|
|
@ -163,7 +163,8 @@ class L2Controller(object):
|
|||
for v6route in self.v6_routes[self.mode]:
|
||||
self.controller.table_add("v6_networks", "set_egress_port", [str(v6route['net'])], [str(v6route['port'])])
|
||||
|
||||
self.listen_to_icmp6_multicast()
|
||||
if self.args.multicast_to_controller:
|
||||
self.listen_to_icmp6_multicast()
|
||||
|
||||
self.controller.table_clear("v4_routing")
|
||||
for v4route in self.v4_routes[self.mode]:
|
||||
|
|
@ -233,7 +234,6 @@ class L2Controller(object):
|
|||
packet = Ether(str(pkg))
|
||||
|
||||
self.debug_print_pkg(pkg)
|
||||
print("p={}".format(pkg.__repr__()))
|
||||
|
||||
if packet.type == 0x0800:
|
||||
pass
|
||||
|
|
@ -266,6 +266,7 @@ class L2Controller(object):
|
|||
parser = argparse.ArgumentParser(description='controller++')
|
||||
parser.add_argument('--mode', help='Select mode / settings to use', choices=self.modes)
|
||||
parser.add_argument('--debug', help='Enable debug logging', action='store_true')
|
||||
parser.add_argument('--multicast-to-controller', help='Send debug multicast to controller', action='store_true')
|
||||
|
||||
self.args = parser.parse_args()
|
||||
self.mode = self.args.mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue