cmd_template = "p {0} entry addm {1} 1 {2} 1 0 32 65535 65535 65535"
for gw, ip in zip(gw_ips, ip_iter):
cmd = cmd_template.format(pipeline, gw, ip)
pipeline += worker_threads
pipeline += offset
cmd_template = "p {0} entry addm {1} 1 {2} 1 0 32 65535 65535 65535"
for gw, ip in zip(gw_ips, ip_iter):
cmd = cmd_template.format(pipeline, gw, ip)
pipeline += worker_threads
pipeline += offset