summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/constant.py
blob: ebcf897c6829b30d2fb1a498ce62a2f8a3d1bada (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
59
60
61
62
63
64
65
66
67
68
# Copyright (C) 2015 Nippon Telegraph and Telephone Corporation.
#
# 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.


IPv4 = 'ipv4'
IPv6 = 'ipv6'
GOBGP_IP = "10.0.255.1"
GOBGP_CONTAINER_NAME = "gobgp"
GOBGP_ADDRESS_0 = {IPv4: GOBGP_IP,
                   IPv6: "2001::0:192:168:255:1"}
GOBGP_ADDRESS_1 = {IPv4: "11.0.255.1",
                   IPv6: "2001::1:192:168:255:1"}
GOBGP_ADDRESS_2 = {IPv4: "12.0.255.1",
                   IPv6: "2001::2:192:168:255:1"}
GOBGP_CONFIG_FILE = "gobgpd.conf"
CONFIG_DIR = "/tmp/gobgp"
CONFIG_DIRR = "/tmp/gobgp/"
SHARE_VOLUME = "/root/share_volume"
CLI_CMD = "gobgpcli"
EXABGP_CONTAINER_NAME = "exabgp"
EXABGP_ADDRESS = "10.0.0.100/16"
EXABGP_CONFDIR = SHARE_VOLUME + "/exabgp_test_conf"
EXABGP_LOG_FILE = "exabgpd.log"
EXABGP_COMMON_CONF = "exabgp-gobgp-common.conf"
STARTUP_FILE_NAME = "gobgp_startup.sh"
STARTUP_FILE = SHARE_VOLUME + "/" + STARTUP_FILE_NAME
INSTALL_FILE_NAME = "gobgp_install.sh"
INSTALL_FILE = SHARE_VOLUME + "/" + INSTALL_FILE_NAME

IP_VERSION = IPv4
IF_CONFIG_OPTION = {IPv4: "inet", IPv6: "inet6"}
BRIDGE_0 = {"BRIDGE_NAME": "br0",
            IPv4: "10.0.255.2",
            IPv6: "2001::0:192:168:255:2"}
BRIDGE_1 = {"BRIDGE_NAME": "br1",
            IPv4: "11.0.255.2",
            IPv6: "2001::1:192:168:255:2"}
BRIDGE_2 = {"BRIDGE_NAME": "br2",
            IPv4: "12.0.255.2",
            IPv6: "2001::2:192:168:255:2"}
BRIDGES = [BRIDGE_0, BRIDGE_1, BRIDGE_2]

BASE_NET = {BRIDGE_0["BRIDGE_NAME"]: {IPv4: "10.0.0.", IPv6: "2001::0:192:168:0:"},
            BRIDGE_1["BRIDGE_NAME"]: {IPv4: "11.0.0.", IPv6: "2001::1:192:168:0:"},
            BRIDGE_2["BRIDGE_NAME"]: {IPv4: "12.0.0.", IPv6: "2001::2:192:168:0:"}}

BASE_MASK = {IPv4: "/16", IPv6: "/64"}

A_PART_OF_CURRENT_DIR = "/test/scenario_test"


ADJ_RIB_IN = "adj-in"
ADJ_RIB_OUT = "adj-out"
LOCAL_RIB = "local"
GLOBAL_RIB = "global rib"
NEIGHBOR = "neighbor"