forked from APS-Networks/APS-One-touch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yaml
88 lines (72 loc) · 3.56 KB
/
settings.yaml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
%YAML 1.2
---
#For quick start goto bottom and type in profile of choice under slected.
SWITCH Model: BF2556X_1T
#OR
#SWITCH Model: BF6064X_T
PATH_PREFIX: #Various paths used in this setting file are evaluated relative to this, Default is user home diretory
BSP: &bsp
bsp_pkg: /bsp/BF2556X-1T_BSP_9.0.0-master.zip
#OR
#bsp_pkg: /bsp/BF6064X_BSP_9.0.0-master.zip
BF SDE: &bf_sde
sde_pkg: /BF/bf-sde-9.1.0.tar
sde_home: /BF/bf-sde-9.1.0 # SDE path relative to user home. If left blank default is APS-One-touch/<bf-sde-x.y.z>.
sde_version: 9.1.0 #Required for stratum to run
p4studio_build_profile: stratum_profile #Leave it blank to enter detailed interactive P4 Studio build shell, Value is overriden to stratum_profile in case stratum_hw_profile or stratum_sim_profile is selected
p4_name: #Leave it blank to start SDE without a P4 program or p4 program name which is already built in SDE.
build_flags: #Optional list of P4Studio build flags.
#Provide more flags with '-' in the beginning, its for yaml syntax.
#and than flag e.g. '-rb'
#- -rb
#- -iod
SAL: &sal
# Following parameters are useful when you have SAL src and building SAL,
# otherwise SAL binaries are sufficient to run and can be ignored.
build_third_party: true #Currently gRPC interface of SAL uses protobuf, gRPC and PI packages,
# false - Ensure that SDE is built with p4_runtime_profile, and above mentioned deps are installed under $SDE_INSTALL
# true - Protobuf, gRPC and PI will be built independently by AOT under $SAL_INSTALL.
sal_home: /sal # SAL Source directory, Param is useful for development usage only
enable_grpc: true #Enables sal's grpc interface, Works only when SDE is built with p4runtime profile and selected APS profile is not stratum_xyz
enable_tofino: true #Enables Tofino control in SAL, Set it false if external application wants to take over Tofino control,
#And in case of stratum_xyz profile selected for stratum APS value is overridden to false automatically
GB: &gb #Used by SAL profiles only.
gb_pkg: gb.tar
gb_src: /Gearbox/Px-4.2_2020_03_018/work/cpss/
gb_lib: /Gearbox/Px-4.2_2020_03_018/work/cpss/compilation_root/cpss_4.2/ia64_PX/
# gb_src: /Gearbox/Px-4.2_2019_2_008/work/cpss/
# gb_lib: /Gearbox/Px-4.2_2019_2_008/work/compilation_root/
STRATUM: &stratum
stratum_home: /stratum
stratum_config: #default is APS-One-touch/stratum_config
mode: bsp #bsp mode is recommended or bsp-less
#To quick start just type in the profile name in 'selected' with * in the beginning.
#All files and directory path are relative to user's home.
# Profile which have 'sim' in their names are meant to work on PCs in simulation mode,
# Rest are suitable for actual switches.
BUILD_PROFILES: &build_profiles
sde_sim: &sde_sim_profile #If selected, Configure 'BF SDE' and 'BSP' node above in the file.
name: sde_sim_profile
details: *bf_sde
deps:
sde_hw: &sde_hw_profile #If selected, Configure 'BF SDE' and 'BSP' node above in the file.
name: sde_hw_profile
details: *bf_sde
deps: *bsp
sal_hw: &sal_hw_profile
name: sal_hw_profile
details: *sal
deps: *sde_hw_profile
sal_sim: &sal_sim_profile
name: sal_sim_profile
details: *sal
deps: *sde_sim_profile
stratum_sim: &stratum_sim_profile #If selected, Configure STRATUM node above.
name: stratum_sim_profile
details: *stratum
deps: *sal_sim_profile
stratum_hw: &stratum_hw_profile #If selected, Configure STRATUM node above.
name: stratum_hw_profile
details: *stratum
deps: *sal_hw_profile
selected: *sde_hw_profile