how to convert .py profiles to .json profile

51 views
Skip to first unread message

Amith A Shetty

unread,
Jun 6, 2022, 4:14:39 AM6/6/22
to TRex Traffic Generator
We are planning to create an automation that uses Trex RPC Server to interact.(https://trex-tgn.cisco.com/trex/doc/trex_rpc_server_spec.html)
But from the spec I noted that there is no way to use .py profile(Both STL and ASTF) instead we need to use .json profile in Trex RPC Server.
So "Is there a way to generate .json profile from .py file?"
Thanks,
Amith

hanoh haim

unread,
Jun 7, 2022, 2:13:49 AM6/7/22
to Amith A Shetty, TRex Traffic Generator
Hi Amith, 
Yes, the profile.py is just a way to build a json. the specification should be part of the RPC spec (maybe not up to date but you can always do a reverse eng)
Could you say what is the reason to interact directly with the RPC API? is it to create a new language client? 

Thanks
Hanoh
Reply all
Reply to author
Forward
0 new messages