diff --git a/p4app/controller.py b/p4app/controller.py index c0fe29c..94a9966 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -401,7 +401,7 @@ class L2Controller(object): log.debug("Neighbor solicitation for checking her own IP address") elif ICMPv6MLReport2 in orig_packet and orig_packet['IPv6'].dst == 'ff02::16': mc_group = orig_packet['ICMPv6MLDMultAddrRec'].dst - log.debug("Multicast registration for {} from {} -- should probably handle this".format(mc_group, cpu_header['ingress_port'])) + log.debug("Multicast registration for {} from {} -- should probably handle this".format(mc_group, cpu_header.ingress_port)) elif ICMPv6ND_RS in orig_packet and orig_packet['IPv6'].dst == 'ff02::2': src = orig_packet['IPv6'].src log.debug("Router solicitation from {} -- should probably handle this?".format(src)) diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index cda8f27..3ba29c5 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -292,7 +292,7 @@ control MyEgress(inout headers hdr, hdr.cpu.setValid(); hdr.cpu.task = meta.task; hdr.cpu.ethertype = hdr.ethernet.ethertype; - hdr.cpu.ingress_port = (bit<16>)meta.ingress_port; + hdr.cpu.ingress_port = (bit<16>) meta.ingress_port; hdr.ethernet.ethertype = TYPE_CPU; }