1# Copyright (C) 2017-2021 Pier Carlo Chiodi
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, either version 3 of the License, or
6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
14# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
16import os
17import unittest
18
19from .base import SkeletonScenario
20from pierky.arouteserver.builder import OpenBGPDConfigBuilder
21from pierky.arouteserver.tests.live_tests.base import LiveScenario_TagRejectPolicy
22from pierky.arouteserver.tests.live_tests.bird import BIRDInstanceIPv4
23from pierky.arouteserver.tests.live_tests.openbgpd import OpenBGPD60Instance
24
25@unittest.skipIf("TRAVIS" in os.environ, "not supported on Travis CI")
26class SkeletonScenario_OpenBGPDIPv4(LiveScenario_TagRejectPolicy,
27                                    SkeletonScenario):
28    """BGP speaker specific and IP version specific derived class.
29
30    Please see test_bird4.py for more information.
31    """
32
33    __test__ = True
34    SKIP_ON_TRAVIS = True
35
36    SHORT_DESCR = "Live test, OpenBGPD 6.0, skeleton, IPv4"
37    CONFIG_BUILDER_CLASS = OpenBGPDConfigBuilder
38    RS_INSTANCE_CLASS = OpenBGPD60Instance
39    CLIENT_INSTANCE_CLASS = BIRDInstanceIPv4
40    IP_VER = 4
41
42    DATA = {
43        "rs_IPAddress":             "192.0.2.2",
44        "AS1_IPAddress":            "192.0.2.11",
45        "AS2_IPAddress":            "192.0.2.22",
46
47        "AS2_prefix1":              "2.0.1.0/24",
48        "AS2_bogon1":               "192.168.2.0/24"
49    }
50