- $ cat /etc/trex_cfg.yaml
- - version : 2
- interfaces : ["0000:0d:00.0","0000:0d:00.1"]
- port_info :
- - dest_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf5]
- src_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf4]
- - dest_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf4]
- src_mac : [0x3c,0xfd,0xfe,0x9c,0xee,0xf5]
+ $ sudo -E -S sh -c 'cat << EOF > /etc/trex_cfg.yaml
+ - version: 2
+ c: 7
+ limit_memory: 8192
+ interfaces: ["${pci1}","${pci2}"]
+ port_info:
+ - dest_mac: [${dest_mac1}]
+ src_mac: [${src_mac1}]
+ - dest_mac: [${dest_mac2}]
+ src_mac: [${src_mac2}]
+ platform :
+ master_thread_id: 0
+ latency_thread_id: 8
+ dual_if:
+ - socket: 0
+ threads: [1, 2, 3, 4, 5, 6, 7]
+ EOF'