Change log levels

This commit is contained in:
Nico Schottelius 2019-03-25 14:30:04 +01:00
parent 194e241974
commit acde8330cb

View file

@ -456,13 +456,13 @@ class L2Controller(object):
# Process parsed # Process parsed
if ICMPv6ND_NS in orig_packet and orig_packet['IPv6'].src == '::': if ICMPv6ND_NS in orig_packet and orig_packet['IPv6'].src == '::':
log.debug("Neighbor solicitation for checking her own IP address") log.info("Neighbor solicitation for checking her own IP address")
elif ICMPv6MLReport2 in orig_packet and orig_packet['IPv6'].dst == 'ff02::16': elif ICMPv6MLReport2 in orig_packet and orig_packet['IPv6'].dst == 'ff02::16':
mc_group = orig_packet['ICMPv6MLDMultAddrRec'].dst mc_group = orig_packet['ICMPv6MLDMultAddrRec'].dst
log.debug("Multicast registration for {} port {} -- should probably handle this".format(mc_group, cpu_header.ingress_port)) log.info("Multicast registration for {} port {} -- should probably handle this".format(mc_group, cpu_header.ingress_port))
elif ICMPv6ND_RS in orig_packet and orig_packet['IPv6'].dst == 'ff02::2': elif ICMPv6ND_RS in orig_packet and orig_packet['IPv6'].dst == 'ff02::2':
src = orig_packet['IPv6'].src src = orig_packet['IPv6'].src
log.debug("Router solicitation from {} -- should probably handle this?".format(src)) log.info("Router solicitation from {} -- should probably handle this?".format(src))
elif cpu_header.task == self.task['ICMP6_NS']: elif cpu_header.task == self.task['ICMP6_NS']:
log.info("Doing neighbor solicitation for the switch in the controller") log.info("Doing neighbor solicitation for the switch in the controller")
self.handle_icmp6_ns(orig_packet) self.handle_icmp6_ns(orig_packet)
@ -470,7 +470,7 @@ class L2Controller(object):
if ICMPv6EchoRequest in orig_packet: if ICMPv6EchoRequest in orig_packet:
self.handle_icmp6_echo_request(orig_packet) self.handle_icmp6_echo_request(orig_packet)
else: else:
log.debug("unhandled reassambled={} from table {}".format(orig_packet.__repr__(), table_id_fields[cpu_header.table_id])) log.info("unhandled reassambled={} from table {}".format(orig_packet.__repr__(), table_id_fields[cpu_header.table_id]))
def run_cpu_port_loop(self): def run_cpu_port_loop(self):