diff --git a/p4app/controller.py b/p4app/controller.py index 5e04fd9..47a4fcb 100755 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -257,23 +257,22 @@ class L2Controller(object): LPM support in P4 This could be solved with ternary matches or smart double table usage - """ log.info("NAT64 map: ({} -> {} => {}), ({} -> {} -> {} (only /24)))".format( v6_src, v6_dst, v4_dst, v4_src, v4_dst, v6_src) - self.controller.table_add("nat64", "nat64_static", # [str(v6_src) + self.controller.table_add("nat64", "nat64_static", [str(v6_dst)], [str(v6_src.network_address), str(v4_dst.network_address), str(v6_dst.network_address)] ) - self.controller.table_add("nat46", "nat46_static", # [str(v4_src) + self.controller.table_add("nat46", "nat46_static", [str(v4_dst)], [str(v6_src.network_address), str(v4_dst.network_address),