load_yaml failing

379 views
Skip to first unread message

svb...@gmail.com

unread,
Jul 12, 2018, 9:05:21 AM7/12/18
to TRex Traffic Generator
Hello,

I'm using the PYTHON STL client libraries to control a T-REX instance. Connecting works fine, but calling STLProfile.load_yaml gives me the following error: "from_json: missing field 'packet' from JSON". The YAML file I try to load is the one provided with T-REX: "cap2/dns.yaml". Loading a PYTHON style profile however seems to work.

Any help will be greatly appreciated.

Sven.

hanoh haim

unread,
Jul 12, 2018, 9:30:57 AM7/12/18
to svb...@gmail.com, TRex Traffic Generator
Each TRex mode of operation has different profile format. You tried to load STF profile in STL mode.

Try stl folder for STL profiles and try the manual for tutorials to better understand what you are doing.

Thanks,
Hanoh 

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/a19bf8d9-d83a-4a44-86e4-607b0ce9537e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

Yaroslav Brustinov

unread,
Jul 12, 2018, 9:35:20 AM7/12/18
to svb...@gmail.com, TRex Traffic Generator
Hi,

It is yaml file of stateful mode:
cap2/dns.yaml

For stateless, yaml should not be used, but Python files in stl directory.

Thanks,
Yaroslav

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages