yaml-cpp: error at line 1, column 3: key not found: duration

565 views
Skip to first unread message

Sandeep Raman

unread,
Feb 17, 2018, 9:52:45 AM2/17/18
to TRex Traffic Generator
Hi,

First time user of TRex on a Intel 82599ES 10-Gigabit NIC. Using the simple cfg yaml for a loopback scenario [DPDK in a box].

When i run trex, it errors as below. I have tried v2.36 and v2.35.

[root@trexnode v2.36]# ./t-rex-64 -f /etc/trex_cfg.yaml
The ports are bound/configured.
Starting TRex v2.36 please wait ...
set driver name net_ixgbe
driver capability : TCP_UDP_OFFLOAD TSO
Number of ports found: 2
zmq publisher at: tcp://*:4500
wait 1 sec .
port : 0
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
port : 1
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
number of ports : 2
max cores for 2 ports : 1
max queue per port : 3
yaml-cpp: error at line 1, column 3: key not found: duration
[root@trexnode v2.36]# ./t-rex-64 -f /etc/trex_cfg.yaml -c 2 -d 30
The ports are bound/configured.
Starting TRex v2.36 please wait ...
set driver name net_ixgbe
driver capability : TCP_UDP_OFFLOAD TSO
Number of ports found: 2
zmq publisher at: tcp://*:4500
wait 1 sec .
port : 0
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
port : 1
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
number of ports : 2
max cores for 2 ports : 2
max queue per port : 4
yaml-cpp: error at line 1, column 3: key not found: duration
[root@trexnode v2.36]#

[root@trexnode v2.35]#./t-rex-64 -f /etc/trex235mac_cfg.yaml -c 2 -d 30
The ports are bound/configured.
Starting TRex v2.35 please wait ...
set driver name net_ixgbe
driver capability : TCP_UDP_OFFLOAD TSO
Number of ports found: 2
zmq publisher at: tcp://*:4500
wait 1 sec .
port : 0
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
port : 1
------------
link : link : Link Up - speed 10000 Mbps - full-duplex
promiscuous : 0
number of ports : 2
max cores for 2 ports : 2
max queue per port : 4
yaml-cpp: error at line 1, column 3: key not found: duration
[root@trexnode v2.35]#


Here is the cfg file:

[root@trexnode etc]# cat trex_cfg.yaml
- port_limit : 2
version : 2
#List of interfaces. Change to suit your setup. Use ./dpdk_setup_ports.py -s to see available options
interfaces : ["05:00.0","05:00.1"]
port_info : # Port IPs. Change to suit your needs. In case of loopback, you can leave as is.
- ip : 0.0.0.0
default_gw : 0.0.0.0
- ip : 0.0.0.0
default_gw : 0.0.0.0

[root@trexnode etc]# cat trex235mac_cfg.yaml
- port_limit : 2 # this option can limit the number of port of the platform
version : 2
interfaces : ["05:00.0","05:00.1"] # list of the interfaces to bind run ./dpdk_nic_bind.py --status
port_info : # set eh mac addr
- dest_mac : [14:02:ec:74:2b:ec] # port 0
src_mac : [14:02:ec:74:2b:ed]
- dest_mac : [0x0,0x0,0x0,0x2,0x0,0x00] # port 1
src_mac : [0x0,0x0,0x0,0x1,0x0,0x00]
- dest_mac : [0x0,0x0,0x0,0x5,0x0,0x00] # port 2
src_mac : [0x0,0x0,0x0,0x6,0x0,0x00]
- dest_mac : [0x0,0x0,0x0,0x6,0x0,0x01] # port 3
src_mac : [0x0,0x0,0x0,0x5,0x0,0x02]
- dest_mac : [0x0,0x0,0x0,0x9,0x0,0x03] # port 4
src_mac : [0x0,0x0,0x0,0xa,0x0,0x04]
- dest_mac : [0x0,0x0,0x0,0xa,0x0,0x05] # port 5
src_mac : [0x0,0x0,0x0,0x9,0x0,0x06]
- dest_mac : [0x0,0x0,0x0,0xd,0x0,0x07] # port 6
src_mac : [0x0,0x0,0x0,0xe,0x0,0x08]
- dest_mac : [0x0,0x0,0x0,0xe,0x0,0x09] # port 7
src_mac : [0x0,0x0,0x0,0xd,0x0,0x0a]


[root@trexnode etc]#

What should be done to get this working.

Thanks,
Sandeep Raman.

Yaroslav Brustinov

unread,
Feb 17, 2018, 10:48:40 AM2/17/18
to Sandeep Raman, TRex Traffic Generator
Hi,

There are 2 YAML files:
One is platform configuration (with interfaces, cores, memory etc.).
It's being passed as --cfg argument, and is relevant to all modes (stateful, stateless, astf)
Another one is traffic-related config (templates of pcaps, IP ranges etc.)
It's being passed as -f argument, and is relevant only to stateful mode.

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.
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/53bec9a2-fa5b-4edb-92fc-1f9012438b97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sandeep Raman

unread,
Feb 18, 2018, 2:19:23 AM2/18/18
to TRex Traffic Generator
Hi,

I checked few example files and each of the file has the entry <<- duration : 10>>. Can you or anyone on the group post a working yaml file for a simple DPDK in a box aka loopback scenario.

Thanks,
Sandeep.

To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.

Sandeep Raman

unread,
Feb 18, 2018, 10:24:21 AM2/18/18
to TRex Traffic Generator
This is solved now and I am using the following command: ./t-rex-64 -f cap2/imix_64_100k.yaml -c 4 -d 30.
Reply all
Reply to author
Forward
0 new messages