Vinith,
Sounds like you wrapped the start/stop transmit code in a loop. Something like this maybe?
for port_id in [1, 2, 3, 4, 5]:
tx_port = ost_pb.PortIdList()
tx_port.port_id.add().id = port_id
drone.startTransmit(tx_port)
# wait for transmit to finish
time.sleep(7)
drone.stopTransmit(tx_port)
Note that startTransmit and stopTransmit take port lists as the input parameter - so you can provide the list of ports to it on which to start/stop the transmit.
e.g. use a code like this -
tx_port = ost_pb.PortIdList()
for port_id in [1, 2, 3, 4, 5]: # use the actual port Ids here
tx_port.port_id.add().id = port_id
drone.startTransmit(tx_port)
# wait for transmit to finish
time.sleep(7)
drone.stopTransmit(tx_port)
Of course you should have configured the streams on all ports (i.e. call drone.build on each port) before invoking the startTransmit.
Let me know if you have any questions.
Srivats (Founder, Ostinato)
Generate 🚀 wire speed 10/25/40G traffic with the new Ostinato
Turbo add-on!