question

yagnaphani avatar image
yagnaphani asked wwz commented

How to differentiate between boundstream and rawstream in traffic_config python HLTAPI?

Hi Everyone

We are using STC 4.49 and HLTAPI verison 4.46. We have a query regarding raw/bound streams.

We have configured bound streams between two ports to send IPv4 traffic and generated HLTAPI for python. We have done same thing for raw streams as well. The only difference we could see is MAC address configuration is not present in traffic_config in case of bound streams.

We automated the test case using bound streams and also we are saving the configuration in a tcc file.

When we are loading the tcc file in GUI, we can see raw streams configured in GUI.

Can someone please let us know the what is the correct traffic_config API call for raw stream and bound stream.

Regards

Phani

Spirent TestCenter (STC)hltapi
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

seilersen avatar image
seilersen answered wwz commented
emulation_src_handle = src_hdl,

emulation_dst_handle = dst_hdl,

sth.traffic_config ( mode = 'create', port_handle = port_handle[0],

emulation_src_handle = src_hdl,

emulation_dst_handle = dst_hdl,

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lawrence.lee avatar image
lawrence.lee answered wwz commented

@Steve, there is only one STC port, do I need index 0 to get the value of port_handle? Since the harness that I script with Tcl, is it the same way to get the port_handle? Please advise. Thank you.

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

seilersen avatar image
seilersen answered wwz commented

Before you export make sure the src and dst are devices (not IP-addresses)

1 comment
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.