aboutsummaryrefslogtreecommitdiffstats
path: root/puppet/upgrade_config.yaml
blob: 4f96717508f8387745ce2c3ff8cbfcf937b3afb0 (plain)
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
heat_template_version: pike
description: 'Upgrade for via ansible by applying a step related tag'

parameters:
  UpgradeStepConfig:
     type: json
     description: Config (ansible yaml) that will be used to step through the deployment.
     default: ''

  step:
    type: string
    description: Step number of the upgrade

  SkipUpgradeConfigTags:
    type: comma_delimited_list
    description: Ansible tags to skip during upgrade, e.g validation skips pre-upgrade validations
    default: []

resources:

  AnsibleConfig:
    type: OS::Heat::Value
    properties:
      value:
        str_replace:
          template: CONFIG
          params:
            CONFIG:
              - hosts: localhost
                connection: local
                tasks: {get_param: UpgradeStepConfig}

  AnsibleUpgradeConfigImpl:
    type: OS::Heat::SoftwareConfig
    properties:
      group: ansible
      options:
        skip_tags:
          list_join:
            - ","
            - {get_param: SkipUpgradeConfigTags}
        tags:
          str_replace:
            template: "common,stepSTEP"
            params:
              STEP: {get_param: step}
        modulepath: /usr/share/ansible-modules
      inputs:
      - name: role
      config: {get_attr: [AnsibleConfig, value]}

outputs:
  OS::stack_id:
    description: The software config which runs ansible with tags
    value: {get_resource: AnsibleUpgradeConfigImpl}
  upgrade_config:
    description:  The configuration file used for upgrade
    value: {get_attr: [AnsibleConfig, value]}
7 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 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999
# Copyright 2017-2018 Intel Corporation and Tieto.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#
# This file introduces a series of scalability testcases prepared for OVS
# and VPP. Tests are unidirectional and they are focused on L3, L4 and VxLAN
# switching performance.
# Following test types are available:
#   1) unique rule for each IP stream (OVS only)
#   2) one rule for /8 netmask covering all streams
#   3) unique ARP entry for each IP stream (VPP only)
#   4) unique IP route for each IP stream (VPP only)
#

INTEGRATION_TESTS = INTEGRATION_TESTS + [
    #
    # L3 & L4 tests to compare OVS and VPP performance
    #
    # Example of execution:
    #   ./vsperf --test-params "TRAFFIC={'multistream':2000,'traffic_type':'rfc2544_continuous'}" \
    #       p2p_l3_multi_IP_ovs_mask p2p_l4_multi_PORT_ovs_mask
    #
    #   ./vsperf --test-params "TRAFFIC={'multistream':8000,'traffic_type':'rfc2544_throughput'}" \
    #       p2p_l3_multi_IP_vpp p2p_l4_multi_PORT_vpp
    {
        "Name": "p2p_l3_multi_IP_ovs",
        "Deployment": "clean",
        "Description": "OVS: P2P L3 multistream with unique flow for each IP stream",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['tools', 'exec_python',
                 'import netaddr;'
                 'cmds=open("/tmp/ovsofctl_cmds.txt","w");'
                 '[print("add nw_dst={} idle_timeout=0,dl_type=0x800,'
                 'in_port=1,action=output:2".format('
                 'netaddr.IPAddress(netaddr.IPAddress("$TRAFFIC["l3"]["dstip"]").value+i)),file=cmds) '
                 'for i in range($TRAFFIC["multistream"])];'
                 'cmds.close()'],
                ['tools', 'exec_shell', "sudo $TOOLS['ovs-ofctl'] -O OpenFlow13 --bundle add-flows int_br0 /tmp/ovsofctl_cmds.txt"],
                ['trafficgen', 'send_traffic', {}],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l3_multi_IP_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: P2P L3 multistream with 1 flow for /8 net mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0' }],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "pvp_l3_multi_IP_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: PVP L3 multistream with 1 flow for /8 net mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVP_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[3][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[4][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0'}],
                ['vnf', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
                ['vnf', 'stop'],
            ] +                                                                                                                          STEP_VSWITCH_PVP_FINIT
    },
    {
        "Name": "pvvp_l3_multi_IP_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: PVVP L3 multistream with 1 flow for /8 net mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io', 'io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVVP_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[3][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[4][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[5][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[6][1]', 'dl_type': '0x800',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0'}],
                ['vnf1', 'start'],
                ['vnf2', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
                ['vnf2', 'stop'],
                ['vnf1', 'stop'],
            ] +
            STEP_VSWITCH_PVVP_FINIT
    },
    {
        "Name": "p2p_l4_multi_PORT_ovs",
        "Deployment": "clean",
        "Description": "OVS: P2P L4 multistream with unique flow for each IP stream",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['tools', 'exec_python',
                 'import netaddr;'
                 'cmds=open("/tmp/ovsofctl_cmds.txt","w");'
                 '[print("add nw_dst={} idle_timeout=0,dl_type=0x800,nw_proto=17,tp_src={},'
                 'in_port=1,action=output:2".format('
                 'netaddr.IPAddress(netaddr.IPAddress("$TRAFFIC["l3"]["dstip"]").value+i),'
                 '$TRAFFIC["l4"]["srcport"]),file=cmds) '
                 'for i in range($TRAFFIC["multistream"])];'
                 'cmds.close()'],
                ['tools', 'exec_shell', "sudo $TOOLS['ovs-ofctl'] -O OpenFlow13 --bundle "
                                        "add-flows int_br0 /tmp/ovsofctl_cmds.txt"],
                ['trafficgen', 'send_traffic', {}],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l4_multi_PORT_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: P2P L4 multistream with 1 flow for /8 net and port mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800',
                 'nw_proto': '17', 'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                 'tp_src': '$TRAFFIC["l4"]["srcport"]',
                 'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0'}],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "pvp_l4_multi_PORT_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: PVP L4 multistream flows for /8 net and port mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVP_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800', 'nw_proto': '17',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'tp_src': '$TRAFFIC["l4"]["srcport"]',
                  'actions': ['output:#STEP[3][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[4][1]', 'dl_type': '0x800', 'nw_proto': '17',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'tp_src': '$TRAFFIC["l4"]["srcport"]',
                  'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0'}],
                ['vnf', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
                ['vnf', 'stop'],
            ] +
            STEP_VSWITCH_PVP_FINIT
    },
    {
        "Name": "pvvp_l4_multi_PORT_mask_ovs",
        "Deployment": "clean",
        "Description": "OVS: PVVP L4 multistream with flows for /8 net and port mask",
        "vSwitch" : "OvsDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io', 'io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVVP_INIT +
            [
                ['vswitch', 'del_flow', 'int_br0'],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[1][1]', 'dl_type': '0x800',
                  'nw_proto': '17', 'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'tp_src': '$TRAFFIC["l4"]["srcport"]',
                  'actions': ['output:#STEP[3][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[4][1]', 'dl_type': '0x800', 'nw_proto': '17',
                  'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'tp_src': '$TRAFFIC["l4"]["srcport"]',
                  'actions': ['output:#STEP[5][1]'], 'idle_timeout': '0'}],
                ['vswitch', 'add_flow', 'int_br0',
                 {'in_port': '#STEP[6][1]', 'dl_type': '0x800',
                  'nw_proto': '17', 'nw_dst': '$TRAFFIC["l3"]["dstip"]/8',
                  'tp_src': '$TRAFFIC["l4"]["srcport"]',
                  'actions': ['output:#STEP[2][1]'], 'idle_timeout': '0'}],
                ['vnf1', 'start'],
                ['vnf2', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'dump_flows', 'int_br0'],
                ['vnf2', 'stop'],
                ['vnf1', 'stop'],
            ] +
            STEP_VSWITCH_PVVP_FINIT
    },
    {
        "Name": "p2p_l3_multi_IP_arp_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L3 multistream with unique ARP entry for each IP stream",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '6.0.0.2',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 5.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.0.1/8']],
                # count option of "set ip arp" command doesn't work reliably for huge
                # count numbers, e.g. 100K
                # it is both more reliale and faster to load batches of sigle
                # ARP commands, although it also fails time to time
                # NOTE: batch load of "set ip arp count" commands with lower
                # count values (e.g. 1000) was also less reliable than using
                # batches of signle arp entries
                ['tools', 'exec_python',
                 'import netaddr;'
                 'dst_mac_value = netaddr.EUI("00:00:00:00:00:0A").value;'
                 'cmds=open("/tmp/vppctl_cmds.txt","w");'
                 '[print("set ip arp #STEP[2][0] {} {}".format('
                 'netaddr.IPAddress(netaddr.IPAddress("$TRAFFIC["l3"]["dstip"]").value+i),'
                 'netaddr.EUI(dst_mac_value+i,dialect=netaddr.mac_unix_expanded)),file=cmds) '
                 'for i in range($TRAFFIC["multistream"])];'
                 'cmds.close()'],
                ['tools', 'exec_shell', "rm -rf /tmp/vppctl_cmds_split*; split -l 1000 "
                                        "/tmp/vppctl_cmds.txt /tmp/vppctl_cmds_split"],
                ['tools', 'exec_shell', "for a in /tmp/vppctl_cmds_split* ; do echo $a ; "
                                        "sudo $TOOLS['vppctl'] exec $a ; sleep 2 ; done"],
                ['vswitch', 'run_vppctl', ['show ip fib summary']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l3_multi_IP_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L3 multistream with 1 route for /8 net mask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '5.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.3.1/24']],
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.3.2 00:00:00:00:00:0A']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 via 6.0.3.2']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l3_multi_IP_routes_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L3 multistream with unique route for each IP stream",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '5.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.3.1/24']],
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.3.2 00:00:00:00:00:0A']],
                # insertion of huge number of IP routes doesn't cause issues
                # seen with ARP entries at p2p_l3_multi_IP_vpp testcase
                ['vswitch', 'run_vppctl', ['ip route add count $TRAFFIC["multistream"] '
                                           '$TRAFFIC["l3"]["dstip"]/32 via 6.0.3.2']],
                ['vswitch', 'run_vppctl', ['show ip fib summary']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "pvp_l3_multi_IP_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: PVP L3 multistream with route for /8 netmask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '5.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVP_INIT +
            [
                ['vswitch', 'run_vppctl', ['set interface mac address #STEP[4][0] 00:00:00:00:00:11']],
                # two separate tables are used, so the same IP network can be routed
                # via different DST IPs to reach VM and trafficgen via 2nd phy NIC
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[1][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[3][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.1.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[3][0] 6.0.3.1/24']],
                # route traffic to VM; Set DST MAC to MAC of 2nd (output) vhost user interface
                # of VM, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[3][0] 6.0.3.2 00:00:00:00:00:11 fib-id 6']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 6 via 6.0.3.2']],

                ['vswitch', 'run_vppctl', ['set int ip table #STEP[2][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[4][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[4][0] 6.0.4.1/24']],
                # route traffic via 2nd phy NIC to reach trafficgen
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.2.2 00:00:00:00:00:0A fib-id 7']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 7 via 6.0.2.2']],

                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['vnf', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
                ['vnf', 'stop'],
            ] +
            STEP_VSWITCH_PVP_FINIT
    },
    {
        "Name": "pvvp_l3_multi_IP_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: PVVP L3 multistream with route for /8 netmask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io', 'io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '5.0.0.1',
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVVP_INIT +
            [
                ['vswitch', 'run_vppctl', ['set interface mac address #STEP[4][0] 00:00:00:00:00:11']],
                ['vswitch', 'run_vppctl', ['set interface mac address #STEP[6][0] 00:00:00:00:00:12']],
                # three separate tables are used, so the same IP network can be routed
                # via different DST IPs to reach both VMs and trafficgen via 2nd phy NIC
                # 1st table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[1][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[3][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.1.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[3][0] 6.0.3.1/24']],
                # route traffic to 1st VM; Set DST MAC to MAC of 2nd (output) vhost user interface
                # of VM1, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[3][0] 6.0.3.2 00:00:00:00:00:11 fib-id 6']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 6 via 6.0.3.2']],
                # 2nd table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[4][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[5][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[4][0] 6.0.4.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[5][0] 6.0.5.1/24']],
                # route traffic to 2nd VM; Set DST MAC to MAC of 2nd (output) vhost user interfacei
                # of VM2, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[5][0] 6.0.5.2 00:00:00:00:00:12 fib-id 7']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 7 via 6.0.5.2']],
                # 3rd table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[2][0] 8']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[6][0] 8']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[6][0] 6.0.6.1/24']],
                # route traffic via 2nd phy NIC to reach trafficgen
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.2.2 00:00:00:00:00:0A fib-id 8']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 8 via 6.0.2.2']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['vnf1', 'start'],
                ['vnf2', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
                ['vnf1', 'stop'],
                ['vnf2', 'stop'],
            ] +
            STEP_VSWITCH_PVVP_FINIT
    },
    {
        "Name": "p2p_l4_multi_PORT_arp_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L4 multistream with unique ARP entry for each IP stream and port check",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'srcip': '6.0.2.2',
                    'dstip': '5.0.0.2',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 5.0.0.1/8']],
                ['tools', 'exec_python',
                 'import netaddr;'
                 'dst_mac_value = netaddr.EUI("00:00:00:00:00:0A").value;'
                 'cmds=open("/tmp/vppctl_cmds.txt","w");'
                 '[print("set ip arp #STEP[2][0] {} {}".format('
                 'netaddr.IPAddress(netaddr.IPAddress("$TRAFFIC["l3"]["dstip"]").value+i),'
                 'netaddr.EUI(dst_mac_value+i,dialect=netaddr.mac_unix_expanded)),file=cmds) '
                 'for i in range($TRAFFIC["multistream"])];'
                 'cmds.close()'],
                ['vswitch', 'run_vppctl',
                 ['set ip source-and-port-range-check vrf 7 $TRAFFIC["l3"]["srcip"]/24 '
                  'port $TRAFFIC["l4"]["dstport"]']],
                ['vswitch', 'run_vppctl',
                 ['set interface ip source-and-port-range-check #STEP[1][0] udp-out-vrf 7']],
                ['tools', 'exec_shell', "rm -rf /tmp/vppctl_cmds_split*; split -l 1000 "
                                        "/tmp/vppctl_cmds.txt /tmp/vppctl_cmds_split"],
                ['tools', 'exec_shell', "for a in /tmp/vppctl_cmds_split* ; do echo $a ; "
                                        "sudo $TOOLS['vppctl'] exec $a ; sleep 2 ; done"],
                ['vswitch', 'run_vppctl', ['show ip fib summary']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l4_multi_PORT_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L4 multistream with 1 route for /8 net mask and port check",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'srcip': '6.0.2.2',
                    'dstip': '5.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.2.1/24']], # STEP 3
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.3.1/24']], # STEP 4
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.3.2 00:00:00:00:00:0A']], # STEP 5
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 via 6.0.3.2']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['vswitch', 'run_vppctl',
                 ['set ip source-and-port-range-check vrf 7 $TRAFFIC["l3"]["srcip"]/24 '
                  'port $TRAFFIC["l4"]["dstport"]']],
                ['vswitch', 'run_vppctl',
                 ['set interface ip source-and-port-range-check #STEP[1][0] udp-out-vrf 7']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "p2p_l4_multi_PORT_routes_vpp",
        "Deployment": "clean",
        "Description": "VPP: P2P L4 multistream with unique route for each IP stream and port check",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'srcip': '6.0.2.2',
                    'dstip': '5.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.3.1/24']],
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.3.2 00:00:00:00:00:0A']],
                # insertion of huge number of IP routes doesn't cause issues
                # seen with ARP entries at p2p_l3_multi_IP_vpp testcase
                ['vswitch', 'run_vppctl',
                 ['ip route add count $TRAFFIC["multistream"] $TRAFFIC["l3"]["dstip"]/32 via 6.0.3.2']],
                ['vswitch', 'run_vppctl',
                 ['set ip source-and-port-range-check vrf 7 $TRAFFIC["l3"]["srcip"]/24 '
                  'port $TRAFFIC["l4"]["dstport"]']],
                ['vswitch', 'run_vppctl',
                 ['set interface ip source-and-port-range-check #STEP[1][0] udp-out-vrf 7']],
                ['vswitch', 'run_vppctl', ['show ip fib summary']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "pvp_l4_multi_PORT_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: PVP L4 multistream with route for /8 net and port mask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'srcip': '4.0.0.1',
                    'dstip': '5.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVP_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int mac address #STEP[4][0] 00:00:00:00:00:11']],
                # create table for port check
                ['vswitch', 'run_vppctl', ['set ip source-and-port-range-check vrf 5 '
                                           '$TRAFFIC["l3"]["srcip"]/24 '
                  'port $TRAFFIC["l4"]["dstport"]']],
                # two separate tables are used, so the same IP network can be routed
                # via different DST IPs to reach VM and trafficgen via 2nd phy NIC
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[1][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[3][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.1.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[3][0] 6.0.3.1/24']],
                # enforce port check
                ['vswitch', 'run_vppctl', ['set int ip source-and-port-range-check #STEP[1][0] '
                                           'udp-out-vrf 5']],
                # route traffic to VM; Set DST MAC to MAC of 2nd (output) vhost user interface
                # of VM, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[3][0] 6.0.3.2 00:00:00:00:00:11 fib-id 6']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 6 via 6.0.3.2']],

                ['vswitch', 'run_vppctl', ['set int ip table #STEP[2][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[4][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[4][0] 6.0.4.1/24']],
                # route traffic via 2nd phy NIC to reach trafficgen
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.2.2 00:00:00:00:00:0A fib-id 7']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 7 via 6.0.2.2']],

                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['vnf', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
                ['vnf', 'stop'],
            ] +
            STEP_VSWITCH_PVP_FINIT
    },
    {
        "Name": "pvvp_l4_multi_PORT_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: PVVP L4 multistream with route for /8 net and port mask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "GUEST_TESTPMD_FWD_MODE" : ['io', 'io'],
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'srcip': '4.0.0.1',
                    'dstip': '5.0.0.1',
                },
                'l4': {
                    'enabled': True,
                    'srcport': 7,
                    'dstport': 8,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_PVVP_INIT +
            [
                ['vswitch', 'run_vppctl', ['set int mac address #STEP[4][0] 00:00:00:00:00:11']],
                ['vswitch', 'run_vppctl', ['set int mac address #STEP[6][0] 00:00:00:00:00:12']],
                # create table for port check
                ['vswitch', 'run_vppctl', ['set ip source-and-port-range-check vrf 5 '
                                           '$TRAFFIC["l3"]["srcip"]/24 port $TRAFFIC["l4"]["dstport"]']],
                # three separate tables are used, so the same IP network can be routed
                # via different DST IPs to reach both VMs and trafficgen via 2nd phy NIC
                # 1st table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[1][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[3][0] 6']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[1][0] 6.0.1.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[3][0] 6.0.3.1/24']],
                # enforce port check
                ['vswitch', 'run_vppctl', ['set int ip source-and-port-range-check #STEP[1][0] udp-out-vrf 5']],
                # route traffic to 1st VM; Set DST MAC to MAC of 2nd (output) vhost user interface
                # of VM1, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[3][0] 6.0.3.2 00:00:00:00:00:11 fib-id 6']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 6 via 6.0.3.2']],
                # 2nd table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[4][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[5][0] 7']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[4][0] 6.0.4.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[5][0] 6.0.5.1/24']],
                # route traffic to 2nd VM; Set DST MAC to MAC of 2nd (output) vhost user interfacei
                # of VM2, so traffic is accepted by VPP in next table
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[5][0] 6.0.5.2 00:00:00:00:00:12 fib-id 7']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 7 via 6.0.5.2']],
                # 3rd table
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[2][0] 8']],
                ['vswitch', 'run_vppctl', ['set int ip table #STEP[6][0] 8']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[2][0] 6.0.2.1/24']],
                ['vswitch', 'run_vppctl', ['set int ip address #STEP[6][0] 6.0.6.1/24']],
                # route traffic via 2nd phy NIC to reach trafficgen
                ['vswitch', 'run_vppctl', ['set ip arp #STEP[2][0] 6.0.2.2 00:00:00:00:00:0A fib-id 8']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 table 8 via 6.0.2.2']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['vnf1', 'start'],
                ['vnf2', 'start'],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
                ['vnf1', 'stop'],
                ['vnf2', 'stop'],
            ] +
            STEP_VSWITCH_PVVP_FINIT
    },
    #
    # End of L3 & L4 tests to compare OVS and VPP performance
    #
    #
    # VxLAN tests to compare OVS and VPP performance
    #
    # Example of execution:
    #   ./vsperf --test-params "TRAFFIC={'multistream':2000,'traffic_type':'rfc2544_continuous'}" \
    #       vxlan_multi_IP_vpp
    {
        "Name": "vxlan_multi_IP_mask_ovs",
        "Deployment": "op2p",
        "Tunnel Type": "vxlan",
        "Tunnel Operation": "encapsulation",
        "Description": "OVS: VxLAN L3 multistream",
        "Parameters": {
            "TRAFFICGEN_IXNET_TCL_SCRIPT" : "ixnetrfc2544v2.tcl",
            "TRAFFICGEN_PORT1_MAC" : '00:00:00:00:00:01',
            "TRAFFICGEN_PORT2_MAC" : '#PARAM(NICS[0]["mac"])',
            "TRAFFICGEN_PORT1_IP"  : '9.0.0.2',
            "TRAFFICGEN_PORT2_IP"  : '10.0.0.2',
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
            },
        },
        "TestSteps": [
            ['vswitch', 'del_flow', '$TUNNEL_INTEGRATION_BRIDGE', {'in_port': '1'}],
            ['vswitch', 'add_flow', '$TUNNEL_INTEGRATION_BRIDGE',
             {'in_port': '1', 'dl_type': '0x800', 'nw_proto': '17',
              'nw_dst': '$TRAFFICGEN_PORT2_IP/8', 'actions': ['output:2'],
              'idle_timeout': '0'}],
            ['vswitch', 'dump_flows', '$TUNNEL_INTEGRATION_BRIDGE'],
            ['vswitch', 'dump_flows', '$TUNNEL_EXTERNAL_BRIDGE'],
        ],
    },
    {
        "Name": "vxlan_multi_IP_arp_vpp",
        "Deployment": "clean",
        "Description": "VPP: VxLAN L3 multistream with unique ARP entry for each IP stream",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '10.0.0.2',
                },
                'l4': {
                    'enabled': True,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl',
                 ['set int ip address #STEP[1][0] 9.0.0.1/16']],
                ['vswitch', 'run_vppctl',
                 ['set int ip address #STEP[2][0] 11.0.0.1/16']],
                ['vswitch', 'run_vppctl',
                 ['create vxlan tunnel src 11.0.0.1 dst 11.0.0.2 vni 1']],
                ['vswitch', 'run_vppctl',
                 ['set int state vxlan_tunnel0 up']],
                ['vswitch', 'run_vppctl',
                 ['set int ip address vxlan_tunnel0 10.0.0.1/8']],
                ['vswitch', 'run_vppctl',
                 ['set ip arp #STEP[2][0] 11.0.0.2 00:00:00:00:00:00']],
                ['tools', 'exec_python',
                 'import netaddr;'
                 'dst_mac_value = netaddr.EUI("00:00:00:00:00:0A").value;'
                 'cmds=open("/tmp/vppctl_cmds.txt","w");'
                 '[print("set ip arp vxlan_tunnel0 {} {}".format('
                 'netaddr.IPAddress(netaddr.IPAddress("$TRAFFIC["l3"]["dstip"]").value+i),'
                 'netaddr.EUI(dst_mac_value+i,dialect=netaddr.mac_unix_expanded)),file=cmds) '
                 'for i in range($TRAFFIC["multistream"])];'
                 'cmds.close()'],
                ['tools', 'exec_shell',
                 "rm -rf /tmp/vppctl_cmds_split*;"
                 "split -l 1000 /tmp/vppctl_cmds.txt /tmp/vppctl_cmds_split"],
                ['tools', 'exec_shell',
                 "for a in /tmp/vppctl_cmds_split* ; do "
                 "echo $a ; sudo $TOOLS['vppctl'] exec $a ; sleep 2 ; done"],
                ['vswitch', 'run_vppctl', ['show ip fib summary']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    {
        "Name": "vxlan_multi_IP_mask_vpp",
        "Deployment": "clean",
        "Description": "VPP: VxLAN L3 multistream with 1 route for /8 netmask",
        "vSwitch" : "VppDpdkVhost",
        "Parameters" : {
            "TRAFFIC" : {
                'bidir' : 'False',
                "stream_type" : "L3",
                'l2': {
                    'dstmac' : '#PARAM(NICS[0]["mac"])',
                },
                'l3': {
                    'enabled': True,
                    'proto': 'udp',
                    'dstip': '8.0.0.1',
                },
                'l4': {
                    'enabled': True,
                },
            },
        },
        "TestSteps":
            STEP_VSWITCH_P2P_INIT +
            [
                ['vswitch', 'run_vppctl',
                 ['set int ip address #STEP[1][0] 9.0.0.1/16']],
                ['vswitch', 'run_vppctl',
                 ['set int ip address #STEP[2][0] 11.0.0.1/16']],
                ['vswitch', 'run_vppctl',
                 ['create vxlan tunnel src 11.0.0.1 dst 11.0.0.2 vni 1']],
                ['vswitch', 'run_vppctl',
                 ['set int state vxlan_tunnel0 up']],
                ['vswitch', 'run_vppctl',
                 ['set int ip address vxlan_tunnel0 10.0.0.1/24']],
                ['vswitch', 'run_vppctl',
                 ['set ip arp #STEP[2][0] 11.0.0.2 00:00:00:00:00:00']],
                ['vswitch', 'run_vppctl',
                 ['set ip arp vxlan_tunnel0 10.0.0.2 00:00:00:00:00:0A']],
                ['vswitch', 'run_vppctl', ['ip route add $TRAFFIC["l3"]["dstip"]/8 via 10.0.0.2']],
                ['vswitch', 'run_vppctl', ['show ip fib']],
                ['trafficgen', 'send_traffic', {}],
                ['vswitch', 'run_vppctl', ['show interfaces']],
            ] +
            STEP_VSWITCH_P2P_FINIT
    },
    #
    # End of VxLAN tests to compare OVS and VPP performance
    #
]