- url = base
- file_name = u""
- anchor = u".html#"
- feature = u""
-
- if u"lbdpdk" in test_name or u"lbvpp" in test_name:
- file_name = u"link_bonding"
-
- elif u"114b" in test_name and u"vhost" in test_name:
- file_name = u"vts"
-
- elif u"testpmd" in test_name or u"l3fwd" in test_name:
- file_name = u"dpdk"
-
- elif u"memif" in test_name:
- file_name = u"container_memif"
- feature = u"-base"
-
- elif u"srv6" in test_name:
- file_name = u"srv6"
-
- elif u"vhost" in test_name:
- if u"l2xcbase" in test_name or u"l2bdbasemaclrn" in test_name:
- file_name = u"vm_vhost_l2"
- if u"114b" in test_name:
- feature = u""
- elif u"l2xcbase" in test_name and u"x520" in test_name:
- feature = u"-base-l2xc"
- elif u"l2bdbasemaclrn" in test_name and u"x520" in test_name:
- feature = u"-base-l2bd"
- else:
- feature = u"-base"
- elif u"ip4base" in test_name:
- file_name = u"vm_vhost_ip4"
- feature = u"-base"
-
- elif u"ipsecbasetnlsw" in test_name:
- file_name = u"ipsecsw"
- feature = u"-base-scale"
-
- elif u"ipsec" in test_name:
- file_name = u"ipsec"
- feature = u"-base-scale"
- if u"hw-" in test_name:
- file_name = u"ipsechw"
- elif u"sw-" in test_name:
- file_name = u"ipsecsw"
- if u"-int-" in test_name:
- feature = u"-base-scale-int"
- elif u"tnl" in test_name:
- feature = u"-base-scale-tnl"
-
- elif u"ethip4lispip" in test_name or u"ethip4vxlan" in test_name:
- file_name = u"ip4_tunnels"
- feature = u"-base"
-
- elif u"ip4base" in test_name or u"ip4scale" in test_name:
- file_name = u"ip4"
- if u"xl710" in test_name:
- feature = u"-base-scale-features"
- elif u"iacl" in test_name:
- feature = u"-features-iacl"
- elif u"oacl" in test_name:
- feature = u"-features-oacl"
- elif u"snat" in test_name or u"cop" in test_name:
- feature = u"-features"
- else:
- feature = u"-base-scale"
-
- elif u"ip6base" in test_name or u"ip6scale" in test_name:
- file_name = u"ip6"
- feature = u"-base-scale"
-
- elif u"l2xcbase" in test_name or u"l2xcscale" in test_name \
- or u"l2bdbasemaclrn" in test_name or u"l2bdscale" in test_name:
- file_name = u"l2"
- if u"macip" in test_name:
- feature = u"-features-macip"
- elif u"iacl" in test_name:
- feature = u"-features-iacl"
- elif u"oacl" in test_name:
- feature = u"-features-oacl"
- else:
- feature = u"-base-scale"
-