summaryrefslogtreecommitdiffstats
path: root/test/vpp_gre_interface.py
blob: 58a68290c60285c3af3beb81a764908d72614a39 (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
from vpp_interface import VppInterface
import socket


class VppGreInterface(VppInterface):
    """
    VPP GRE interface
    """

    def __init__(self, test, src_ip, dst_ip, outer_fib_id=0, is_teb=0):
        """ Create VPP loopback interface """
        self._sw_if_index = 0
        super(VppGreInterface, self).__init__(test)
        self._test = test
        self.t_src = src_ip
        self.t_dst = dst_ip
        self.t_outer_fib = outer_fib_id
        self.t_is_teb = is_teb

    def add_vpp_config(self):
        s = socket.inet_pton(socket.AF_INET, self.t_src)
        d = socket.inet_pton(socket.AF_INET, self.t_dst)
        r = self.test.vapi.gre_tunnel_add_del(s, d,
                                              outer_fib_id=self.t_outer_fib,
                                              is_teb=self.t_is_teb)
        self._sw_if_index = r.sw_if_index
        self.generate_remote_hosts()

    def remove_vpp_config(self):
        s = socket.inet_pton(socket.AF_INET, self.t_src)
        d = socket.inet_pton(socket.AF_INET, self.t_dst)
        self.unconfig()
        r = self.test.vapi.gre_tunnel_add_del(s, d,
                                              outer_fib_id=self.t_outer_fib,
                                              is_add=0)
d-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
CSIT-2302
=========

.. toctree::
    :maxdepth: 2
    :caption: Introduction

    introduction/report_history
    introduction/introduction
    introduction/test_scenarios_overview
    introduction/physical_testbeds
    introduction/methodology
    introduction/documentation

.. toctree::
    :maxdepth: 2
    :caption: VPP Performance

    vpp_performance_tests/overview
    vpp_performance_tests/csit_release_notes
    vpp_performance_tests/packet_throughput_graphs/index
    vpp_performance_tests/throughput_speedup_multi_core/index
    vpp_performance_tests/packet_latency/index
    vpp_performance_tests/soak_tests/index
    vpp_performance_tests/reconf_tests/index
    vpp_performance_tests/nf_service_density/index
    vpp_performance_tests/hoststack_testing/index
    vpp_performance_tests/gso_testing/index
    vpp_performance_tests/comparisons/index
    vpp_performance_tests/throughput_trending
    vpp_performance_tests/test_environment

.. toctree::
    :maxdepth: 2
    :caption: DPDK Performance

    dpdk_performance_tests/overview
    dpdk_performance_tests/csit_release_notes
    dpdk_performance_tests/packet_throughput_graphs/index
    dpdk_performance_tests/throughput_speedup_multi_core/index
    dpdk_performance_tests/packet_latency/index
    dpdk_performance_tests/comparisons/index
    dpdk_performance_tests/throughput_trending
    dpdk_performance_tests/test_environment

.. toctree::
    :maxdepth: 2
    :caption: TRex Performance

    trex_performance_tests/overview
    trex_performance_tests/csit_release_notes
    trex_performance_tests/packet_throughput_graphs/index
    trex_performance_tests/comparisons/index
    trex_performance_tests/throughput_trending
    trex_performance_tests/test_environment

.. toctree::
    :maxdepth: 2
    :caption: VPP Device

    vpp_device_tests/overview
    vpp_device_tests/csit_release_notes
    vpp_device_tests/test_environment

.. toctree::
    :maxdepth: 2
    :caption: Detailed Results

    detailed_test_results/vpp_performance_results/index
    detailed_test_results/vpp_mrr_results/index
    detailed_test_results/dpdk_performance_results/index
    detailed_test_results/trex_performance_results/index
    detailed_test_results/vpp_device_results_ubuntu/index

.. toctree::
    :maxdepth: 2
    :caption: Test Configuration

    test_configuration/vpp_performance_configuration/index
    test_configuration/vpp_mrr_configuration/index
    test_configuration/vpp_device_configuration_ubuntu/index

.. toctree::
    :maxdepth: 2
    :caption: Test Operational Data

    test_operational_data/vpp_performance_operational_data/index

.. toctree::
    :maxdepth: 2
    :caption: CSIT Framework Documentation

    csit_framework_documentation/csit_design
    csit_framework_documentation/csit_test_naming
    csit_framework_documentation/csit_tag_description