%script click CONFIG < DUMP | grep -v '^!' %file CONFIG r::RoundRobinIPMapper(- - - - 0 0, - - - - 1 0, - - - - 2 0); FromIPSummaryDump(-, STOP true) -> rw::IPRewriter(r) -> Paint(0) -> td::ToIPSummaryDump(-, CONTENTS link); rw[1] -> Paint(1) -> td; rw[2] -> Paint(2) -> td; %file DUMP !data ip_src sport ip_dst dport ip_proto 1.0.0.1 1 1.0.0.2 2 U 1.0.0.1 1 1.0.0.2 3 U 1.0.0.1 1 1.0.0.2 2 U 1.0.0.1 1 1.0.0.3 2 U 1.0.0.1 1 1.0.0.4 2 U 1.0.0.1 1 1.0.0.2 3 U 1.0.0.1 1 1.0.0.2 3 U %expect stdout 0 1 0 2 0 1 1