-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
33 lines (30 loc) · 1.02 KB
/
config.py
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
from harness.utils import XDPFlag
from harness.context import (ContextLocal, ContextRemote, ContextCommunication,
ContextClient, ContextServer, ContextClientList)
from harness.config_virtual import new_virtual_ctx
"""
Context used when running a standalone server.
"""
local_server_ctx = ContextServer(
ContextLocal("enp0s31f6"),
ContextCommunication("192.168.0.106", 6555),
)
"""
List of servers to be used while running a client.
"""
remote_server_ctxs = ContextClientList([
new_virtual_ctx(
ContextLocal("a_to_b", xdp_mode=XDPFlag.DRV_MODE),
ContextCommunication("192.168.1.1"),
"test_b",
ContextLocal("b_to_a", xdp_mode=XDPFlag.DRV_MODE),
ContextCommunication("192.168.1.2", 6000),
),
new_virtual_ctx(
ContextLocal("a_to_c", xdp_mode=XDPFlag.DRV_MODE),
ContextCommunication("192.168.2.1"),
"test_c",
ContextLocal("c_to_a", xdp_mode=XDPFlag.DRV_MODE),
ContextCommunication("192.168.2.2", 6001),
),
])