1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
|
#!/bin/bash
set -x
WORKING_DIR='_tmp'
BUILD_DIR='_build'
SOURCE_DIR='../../../docs/report'
DTR_SOURCE_DIR="${SOURCE_DIR}/detailed_test_results"
DTR_PERF_SOURCE_DIR=${DTR_SOURCE_DIR}/vpp_performance_results
DTR_TESTPMD_SOURCE_DIR=${DTR_SOURCE_DIR}/testpmd_performance_results
DTR_FUNC_SOURCE_DIR=${DTR_SOURCE_DIR}/vpp_functional_results
DTR_HONEYCOMB_SOURCE_DIR=${DTR_SOURCE_DIR}/honeycomb_functional_results
DTC_SOURCE_DIR="${SOURCE_DIR}/detailed_test_configuration"
DTC_PERF_SOURCE_DIR=${DTC_SOURCE_DIR}/vpp_performance_configuration
DTC_PERF_SOURCE_OPER_DIR=${DTC_SOURCE_DIR}/vpp_performance_operational_data
DTC_FUNC_SOURCE_DIR=${DTC_SOURCE_DIR}/vpp_functional_configuration
STATIC_DIR="${BUILD_DIR}/_static"
STATIC_DIR_VPP="${STATIC_DIR}/vpp"
STATIC_DIR_TESTPMD="${STATIC_DIR}/testpmd"
STATIC_DIR_ARCH="${STATIC_DIR}/archive"
CSS_PATCH_FILE="${STATIC_DIR}/theme_overrides.css"
JEN_URL='https://jenkins.fd.io/view/csit/job'
sudo apt-get -y update
sudo apt-get -y install libxml2 libxml2-dev libxslt-dev build-essential \
zlib1g-dev unzip
# Clean-up when finished:
trap 'rm -rf ${WORKING_DIR}; exit' EXIT
trap 'rm -rf ${WORKING_DIR}; exit' ERR
# Remove the old build:
rm -rf ${BUILD_DIR} || true
rm -rf ${WORKING_DIR} || true
# Create working directories
mkdir ${BUILD_DIR}
# Create virtual environment:
virtualenv ${WORKING_DIR}/env
. ${WORKING_DIR}/env/bin/activate
# Install Sphinx:
pip install -r requirements.txt
export PYTHONPATH=`pwd`
# Download raw outputs for plots
echo Downloading raw outputs for plots ...
mkdir -p ${STATIC_DIR_VPP}
mkdir -p ${STATIC_DIR_TESTPMD}
mkdir -p ${STATIC_DIR_ARCH}
### VPP PERFORMANCE SOURCE DATA
JEN_FILE_PERF='output_perf_data.xml'
JEN_JOB='csit-vpp-perf-1704-all'
JEN_BUILD=(6)
for i in "${JEN_BUILD[@]}"; do
curl -fs ${JEN_URL}/${JEN_JOB}/${i}/artifact/${JEN_FILE_PERF} \
-o ${STATIC_DIR_VPP}/${JEN_JOB}-${i}.xml
curl -fs ${JEN_URL}/${JEN_JOB}/${i}/artifact/\*zip\*/archive.zip \
-o ${STATIC_DIR_ARCH}/${JEN_JOB}-${i}.zip
done
# DELETE ME
#cp ./${JEN_JOB}-${JEN_BUILD[-1]}.zip ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD[-1]}.zip
unzip -o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD[-1]}.zip -d ${WORKING_DIR}/
# L2 Ethernet Switching
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_l2.rst \
--formatting rst --start 3 --level 2 \
--regex ".+(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndr" \
--title "L2 Ethernet Switching"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_l2.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndr" \
--title "L2 Ethernet Switching"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_l2.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndr" \
--title "L2 Ethernet Switching"
# IPv4 Routed-Forwarding
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_ipv4.rst \
--formatting rst --start 3 --level 2 \
--regex ".+ethip4-ip4[a-z0-9]+-[a-z-]*ndr" \
--title "IPv4 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_ipv4.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+ethip4-ip4[a-z0-9]+-[a-z-]*ndr" \
--title "IPv4 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_ipv4.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+ethip4-ip4[a-z0-9]+-[a-z-]*ndr" \
--title "IPv4 Routed-Forwarding"
# IPv6 Routed-Forwarding
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_ipv6.rst \
--formatting rst --start 3 --level 2 \
--regex ".+ethip6-ip6[a-z0-9]+-[a-z-]*ndr" \
--title "IPv6 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_ipv6.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+ethip6-ip6[a-z0-9]+-[a-z-]*ndr" \
--title "IPv6 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_ipv6.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+ethip6-ip6[a-z0-9]+-[a-z-]*ndr" \
--title "IPv6 Routed-Forwarding"
# IPv4 Overlay Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_ipv4o.rst \
--formatting rst --start 3 --level 2 \
--regex ".+ethip4[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv4 Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_ipv4o.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+ethip4[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv4 Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_ipv4o.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+ethip4[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv4 Overlay Tunnels"
# IPv6 Overlay Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_ipv6o.rst \
--formatting rst --start 3 --level 2 \
--regex ".+ethip6[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv6 Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_ipv6o.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+ethip6[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv6 Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_ipv6o.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+ethip6[a-z0-9]+-[a-z0-9]*-ndr" \
--title "IPv6 Overlay Tunnels"
# VM Vhost Connections
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_vhost.rst \
--formatting rst --start 3 --level 2 \
--regex ".+vhost.*" \
--title "VM Vhost Connections"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_vhost.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+vhost.*" \
--title "VM Vhost Connections"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_vhost.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+vhost.*" \
--title "VM Vhost Connections"
# Crypto in hardware: IP4FWD, IP6FWD
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_PERF_SOURCE_DIR}/vpp_performance_results_ipsec.rst \
--formatting rst --start 3 --level 2 \
--regex ".+ipsec.*" \
--title "Crypto in hardware: IP4FWD, IP6FWD"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_PERF_SOURCE_DIR}/vpp_performance_configuration_ipsec.rst \
--data "VAT_H" -f "rst" --start 3 --level 2 \
--regex ".+ipsec.*" \
--title "Crypto in hardware: IP4FWD, IP6FWD"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
-o ${DTC_PERF_SOURCE_OPER_DIR}/vpp_performance_operational_data_ipsec.rst \
--data "SH_RUN" -f "rst" --start 3 --level 2 \
--regex ".+ipsec.*" \
--title "Crypto in hardware: IP4FWD, IP6FWD"
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTR_PERF_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTR_PERF_SOURCE_DIR}/index.rst
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTC_PERF_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTC_PERF_SOURCE_DIR}/index.rst
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTC_PERF_SOURCE_OPER_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTC_PERF_SOURCE_OPER_DIR}/index.rst
rm -f ${DTR_PERF_SOURCE_DIR}/*.json
rm -f ${DTC_PERF_SOURCE_DIR}/*.json
rm -f ${DTC_PERF_SOURCE_OPER_DIR}/*.json
### DPDK PERFORMANCE SOURCE DATA
JEN_JOB='csit-dpdk-perf-1704-all'
JEN_BUILD=(1 2 3 4 5)
for i in "${JEN_BUILD[@]}"; do
curl -fs ${JEN_URL}/${JEN_JOB}/${i}/artifact/${JEN_FILE_PERF} \
-o ${STATIC_DIR_TESTPMD}/${JEN_JOB}-${i}.xml
curl -fs ${JEN_URL}/${JEN_JOB}/${i}/artifact/\*zip\*/archive.zip \
-o ${STATIC_DIR_ARCH}/${JEN_JOB}-${i}.zip
done
# DELETE ME
#cp ./${JEN_JOB}-${JEN_BUILD[-1]}.zip ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD[-1]}.zip
unzip -o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD[-1]}.zip -d ${WORKING_DIR}/
# Testpmd Performance Results
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_TESTPMD_SOURCE_DIR}/testpmd_performance_results.rst \
--formatting rst --start 3 --level 2
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTR_TESTPMD_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD[-1]}@g" \
${DTR_TESTPMD_SOURCE_DIR}/index.rst
rm -f ${DTR_TESTPMD_SOURCE_DIR}/*.json
### FUNCTIONAL SOURCE DATA
JEN_JOB='csit-vpp-functional-1704-ubuntu1604-virl'
JEN_BUILD=45
curl -fs ${JEN_URL}/${JEN_JOB}/${JEN_BUILD}/artifact/\*zip\*/archive.zip \
-o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip
# DELETE ME
#cp ./${JEN_JOB}-${JEN_BUILD}.zip ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip
unzip -o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip -d ${WORKING_DIR}/
# Cop Address Security
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_cop.rst \
--formatting rst --start 4 --level 2 \
--regex ".+cop.*" \
--title "Cop Address Security"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_cop.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+cop.*" \
--title "Cop Address Security"
# DHCP Client and proxy
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_dhcp.rst \
--formatting rst --start 4 --level 2 \
--regex ".+dhcp.*" \
--title "DHCP - Client and Proxy"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_dhcp.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+dhcp.*" \
--title "DHCP - Client and Proxy"
# GRE Overlay Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_gre.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ethip4gre.*" \
--title "GRE Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_gre.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ethip4gre.*" \
--title "GRE Overlay Tunnels"
# iACL Security
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_iacl.rst \
--formatting rst --start 4 --level 2 \
--regex ".+iacl.*" \
--title "iACL Security"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_iacl.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+iacl.*" \
--title "iACL Security"
# IPSec - Tunnels and Transport
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_ipsec.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ipsec(tnl|tpt)+-.*" \
--title "IPSec - Tunnels and Transport"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_ipsec.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ipsec(tnl|tpt)+-.*" \
--title "IPSec - Tunnels and Transport"
# IPv4 Routed-Forwarding
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_ipv4.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ethip4-ip4base-(func|ip4ecmp\-func|ip4proxyarp\-func|ip4arp\-func)+" \
--title "IPv4 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_ipv4.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ethip4-ip4base-(func|ip4ecmp\-func|ip4proxyarp\-func|ip4arp\-func)+" \
--title "IPv4 Routed-Forwarding"
# IPv6 Routed-Forwarding
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_ipv6.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ethip6-ip6base-(func|ip6ecmp\-func|ip6ra\-func)+" \
--title "IPv6 Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_ipv6.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ethip6-ip6base-(func|ip6ecmp\-func|ip6ra\-func)+" \
--title "IPv6 Routed-Forwarding"
# L2BD Ethernet Switching
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_SOURCE_DIR}/vpp_functional_results/vpp_functional_results_l2bd.rst \
--formatting rst --start 4 --level 2 \
--regex ".+eth-l2bdbasemac(lrn|stc)+-(func|eth\-2vhost|l2shg\-func).*" \
--title "L2BD Ethernet Switching"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_l2bd.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+eth-l2bdbasemac(lrn|stc)+-(func|eth\-2vhost|l2shg\-func).*" \
--title "L2BD Ethernet Switching"
# L2XC Ethernet Switching
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_l2xc.rst \
--formatting rst --start 4 --level 2 \
--regex ".+eth-l2xcbase-(eth|func).*" \
--title "L2XC Ethernet Switching"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_l2xc.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+eth-l2xcbase-(eth|func).*" \
--title "L2XC Ethernet Switching"
# LISP Overlay Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_lisp.rst \
--formatting rst --start 4 --level 2 \
--regex ".+lisp.*" \
--title "LISP Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_lisp.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+lisp.*" \
--title "LISP Overlay Tunnels"
# QoS Policer Metering
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_policer.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ipolicemark.*" \
--title "QoS Policer Metering"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_performancefunctional_configuration_policer.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ipolicemark.*" \
--title "QoS Policer Metering"
# RPF Source Security
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_rpf.rst \
--formatting rst --start 4 --level 2 \
--regex ".+rpf.*" \
--title "RPF Source Security"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_rpf.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+rpf.*" \
--title "RPF Source Security"
# Softwire Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_softwire.rst \
--formatting rst --start 4 --level 2 \
--regex ".+swire.*" \
--title "Softwire Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_softwire.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+swire.*" \
--title "Softwire Tunnels"
# Tap Interface
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_tap.rst \
--formatting rst --start 4 --level 2 \
--regex ".+tap.*" \
--title "Tap Interface"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_tap.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+tap.*" \
--title "Tap Interface"
# Telemetry - IPFIX and SPAN
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_telemetry.rst \
--formatting rst --start 4 --level 2 \
--regex ".+(ipfix|spanrx).*" \
--title "Telemetry - IPFIX and SPAN"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_telemetry.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+(ipfix|spanrx).*" \
--title "Telemetry - IPFIX and SPAN"
# VLAN Tag Translation
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_vlan.rst \
--formatting rst --start 4 --level 2 \
--regex ".+(dot1q\-|dot1ad\-).*" \
--title "VLAN Tag Translation"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_vlan.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+(dot1q\-|dot1ad\-).*" \
--title "VLAN Tag Translation"
# VRF Routed-Forwarding
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_vrf.rst \
--formatting rst --start 4 --level 2 \
--regex ".+ethip(4|6)+-ip(4|6)+basevrf.*" \
--title "VRF Routed-Forwarding"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_vrf.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+ethip(4|6)+-ip(4|6)+basevrf.*" \
--title "VRF Routed-Forwarding"
# VXLAN Overlay Tunnels
python run_robot_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTR_FUNC_SOURCE_DIR}/vpp_functional_results_vxlan.rst \
--formatting rst --start 4 --level 2 \
--regex ".+(ip4vxlan|ip6vxlan).*" \
--title "VXLAN Overlay Tunnels"
python run_robot_teardown_data.py -i ${WORKING_DIR}/archive/output.xml \
--output ${DTC_FUNC_SOURCE_DIR}/vpp_functional_configuration_vxlan.rst \
--data "VAT_H" -f "rst" --start 4 --level 2 \
--regex ".+(ip4vxlan|ip6vxlan).*" \
--title "VXLAN Overlay Tunnels"
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD}@g" \
${DTR_FUNC_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD}@g" \
${DTR_FUNC_SOURCE_DIR}/index.rst
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD}@g" \
${DTC_FUNC_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD}@g" \
${DTC_FUNC_SOURCE_DIR}/index.rst
rm -f ${DTR_FUNC_SOURCE_DIR}/*.json
rm -f ${DTC_FUNC_SOURCE_DIR}/*.json
### HONEYCOMB SOURCE DATA
JEN_URL='https://jenkins.fd.io/view/hc2vpp/job'
JEN_JOB='hc2vpp-csit-integration-1704-ubuntu1604'
JEN_BUILD=41
curl -fs ${JEN_URL}/${JEN_JOB}/${JEN_BUILD}/artifact/\*zip\*/archive.zip \
-o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip
# DELETE ME
#cp ./${JEN_JOB}-${JEN_BUILD}.zip ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip
unzip -o ${STATIC_DIR_ARCH}/${JEN_JOB}-${JEN_BUILD}.zip -d ${WORKING_DIR}/
python run_robot_data.py -i ${WORKING_DIR}/archive/csit/output.xml \
--output ${DTR_HONEYCOMB_SOURCE_DIR}/honeycomb_functional_results.rst \
--formatting rst --start 3 --level 2
sed -i -e "s@###JOB###@${JEN_JOB}\/${JEN_BUILD}@g" \
${DTR_HONEYCOMB_SOURCE_DIR}/index.rst
sed -i -e "s@###LINK###@${JEN_URL}\/${JEN_JOB}\/${JEN_BUILD}@g" \
${DTR_HONEYCOMB_SOURCE_DIR}/index.rst
rm -f ${DTR_HONEYCOMB_SOURCE_DIR}/*.json
# Generate the documentation:
DATE=$(date -u '+%d-%b-%Y')
sphinx-build -v -c . -a -b html -E \
-D release=$1 -D version="$1 report - $DATE" \
${SOURCE_DIR} ${BUILD_DIR}/
# Patch the CSS for tables layout
cat - > ${CSS_PATCH_FILE} <<"_EOF"
/* override table width restrictions */
@media screen and (min-width: 767px) {
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal !important;
}
.wy-table-responsive {
font-size: small;
margin-bottom: 24px;
max-width: 100%;
overflow: visible !important;
}
}
_EOF
# Plot packets per second
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-l2-ndrdisc \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-l2-ndrdisc \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-ip4-ndrdisc \
--title "64B-1t1c-ethip4-ip4[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-ip4-ndrdisc \
--title "64B-2t2c-ethip4-ip4[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-ip6-ndrdisc \
--title "78B-1t1c-ethip6-ip6[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-ip6-ndrdisc \
--title "78B-2t2c-ethip6-ip6[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-ndrdisc \
--title "64B-1t1c-ethip4[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-ndrdisc \
--title "64B-2t2c-ethip4[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-ndrdisc \
--title "78B-1t1c-ethip6[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-ndrdisc \
--title "78B-2t2c-ethip6[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-vhost-ndrdisc \
--title "64B-1t1c-.*vhost.*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"VHOST")]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-vhost-ndrdisc \
--title "64B-2t2c-.*vhost.*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"VHOST")]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ipsechw-ndrdisc \
--title "64B-1t1c-.*ipsec.*-ndrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "NDRDISC") and contains(@tags, "1T1C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ipsechw-ndrdisc \
--title "64B-2t2c-.*ipsec.*-ndrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "NDRDISC") and contains(@tags, "2T2C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-l2-pdrdisc \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-l2-pdrdisc \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-ip4-pdrdisc \
--title "64B-1t1c-ethip4-ip4[a-z0-9]+-[a-z-]*pdrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-ip4-pdrdisc \
--title "64B-2t2c-ethip4-ip4[a-z0-9]+-[a-z-]*pdrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-ip6-pdrdisc \
--title "78B-1t1c-ethip6-ip6[a-z0-9]+-[a-z-]*pdrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-ip6-pdrdisc \
--title "78B-2t2c-ethip6-ip6[a-z0-9]+-[a-z-]*pdrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-pdrdisc \
--title "64B-1t1c-ethip4[a-z0-9]+-[a-z0-9]*-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-pdrdisc \
--title "64B-2t2c-ethip4[a-z0-9]+-[a-z0-9]*-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-pdrdisc \
--title "78B-1t1c-ethip6[a-z0-9]+-[a-z0-9]*-pdrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-pdrdisc \
--title "78B-2t2c-ethip6[a-z0-9]+-[a-z0-9]*-pdrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-vhost-pdrdisc \
--title "64B-1t1c-.*vhost.*-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"PDRDISC") and contains(@tags,"1T1C") and not(contains(@tags,"NDRDISC")) and contains(@tags,"VHOST")]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-vhost-pdrdisc \
--title "64B-2t2c-.*vhost.*-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"PDRDISC") and contains(@tags,"2T2C") and not(contains(@tags,"NDRDISC")) and contains(@tags,"VHOST")]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ipsechw-pdrdisc \
--title "64B-1t1c-.*ipsec.*-pdrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags, "1T1C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]'
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ipsechw-pdrdisc \
--title "64B-2t2c-.*ipsec.*-pdrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags, "2T2C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]'
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-1t1c-l2-ndrdisc \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-2t2c-l2-ndrdisc \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-1t1c-l2-pdrdisc \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-2t2c-l2-pdrdisc \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-pdrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"PDRDISC") and not(contains(@tags,"NDRDISC")) and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]'
# Plot latency
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-l2-ndrdisc-lat50 \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-l2-ndrdisc-lat50 \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-ip4-ndrdisc-lat50 \
--title "64B-1t1c-ethip4-ip4[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-ip4-ndrdisc-lat50 \
--title "64B-2t2c-ethip4-ip4[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="64B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"IP4FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-ip6-ndrdisc-lat50 \
--title "78B-1t1c-ethip6-ip6[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-ip6-ndrdisc-lat50 \
--title "78B-2t2c-ethip6-ip6[a-z0-9]+-[a-z-]*ndrdisc" \
--xpath '//*[@framesize="78B" and (contains(@tags,"BASE") or contains(@tags,"SCALE") or contains(@tags,"FEATURE")) and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"IP6FWD") and not(contains(@tags,"IPSEC")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ethip4-ndrdisc-lat50 \
--title "64B-1t1c-ethip4[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ethip4-ndrdisc-lat50 \
--title "64B-2t2c-ethip4[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-1t1c-ethip6-ndrdisc-lat50 \
--title "78B-1t1c-ethip6[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/78B-2t2c-ethip6-ndrdisc-lat50 \
--title "78B-2t2c-ethip6[a-z0-9]+-[a-z0-9]*-ndrdisc" \
--xpath '//*[@framesize="78B" and contains(@tags,"ENCAP") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"VXLAN") or contains(@tags,"VXLANGPE") or contains(@tags,"LISP") or contains(@tags,"LISPGPE") or contains(@tags,"GRE")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-vhost-ndrdisc-lat50 \
--title "64B-1t1c-.*vhost.*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and contains(@tags,"VHOST")]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-vhost-ndrdisc-lat50 \
--title "64B-2t2c-.*vhost.*-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and contains(@tags,"VHOST")]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-1t1c-ipsechw-ndrdisc-lat50 \
--title "64B-1t1c-.*ipsec.*-ndrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "NDRDISC") and contains(@tags, "1T1C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_VPP} \
--output ${STATIC_DIR_VPP}/64B-2t2c-ipsechw-ndrdisc-lat50 \
--title "64B-2t2c-.*ipsec.*-ndrdisc" \
--xpath '//*[@framesize="64B" and not(contains(@tags, "VHOST")) and contains(@tags, "IP4FWD") and contains(@tags, "NDRDISC") and contains(@tags, "2T2C") and contains(@tags, "IPSECHW") and (contains(@tags, "IPSECTRAN") or contains(@tags, "IPSECTUN"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-1t1c-l2-ndrdisc-lat50 \
--title "64B-1t1c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"1T1C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]' --latency lat_50
python run_plot.py --input ${STATIC_DIR_TESTPMD} \
--output ${STATIC_DIR_TESTPMD}/64B-2t2c-l2-ndrdisc-lat50 \
--title "64B-2t2c-(eth|dot1q|dot1ad)-(l2xcbase|l2bdbasemaclrn)-ndrdisc" \
--xpath '//*[@framesize="64B" and contains(@tags,"BASE") and contains(@tags,"NDRDISC") and contains(@tags,"2T2C") and (contains(@tags,"L2BDMACSTAT") or contains(@tags,"L2BDMACLRN") or contains(@tags,"L2XCFWD")) and not(contains(@tags,"VHOST"))]' --latency lat_50
# Create archive
echo Creating csit.report.tar.gz ...
tar -czvf ./csit.report.tar.gz ${BUILD_DIR}
|