-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ptf docker with saithrift installed (#58)
- Loading branch information
1 parent
140f8d7
commit a583bff
Showing
3 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM docker-ptf | ||
|
||
RUN apt-get update | ||
|
||
COPY ["deps/saithrift-0.9.tar.gz", "/deps/"] | ||
COPY ["*.ini", "/etc/ptf/"] | ||
COPY ["deps/SAI/test/saithrift/tests/*", "/usr/share/ptf-tests/"] | ||
|
||
RUN tar xzf /deps/saithrift-0.9.tar.gz -C /usr/share/; \ | ||
cd usr/share/saithrift-0.9; \ | ||
python setup.py install; \ | ||
rm -rf /deps |
33 changes: 33 additions & 0 deletions
33
dockers/docker-ptf-saithrift/brcm_interface_to_front_map.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ptf host interface @ switch front port name | ||
0@Ethernet0 | ||
1@Ethernet4 | ||
2@Ethernet8 | ||
3@Ethernet12 | ||
4@Ethernet16 | ||
5@Ethernet20 | ||
6@Ethernet24 | ||
7@Ethernet28 | ||
8@Ethernet32 | ||
9@Ethernet36 | ||
10@Ethernet40 | ||
11@Ethernet44 | ||
12@Ethernet48 | ||
13@Ethernet52 | ||
14@Ethernet56 | ||
15@Ethernet60 | ||
16@Ethernet64 | ||
17@Ethernet68 | ||
18@Ethernet72 | ||
19@Ethernet76 | ||
20@Ethernet80 | ||
21@Ethernet84 | ||
22@Ethernet88 | ||
23@Ethernet92 | ||
24@Ethernet96 | ||
25@Ethernet100 | ||
26@Ethernet104 | ||
27@Ethernet108 | ||
28@Ethernet112 | ||
29@Ethernet116 | ||
30@Ethernet120 | ||
31@Ethernet124 |
33 changes: 33 additions & 0 deletions
33
dockers/docker-ptf-saithrift/msn_2700_interface_to_front_map.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ptf host interface @ switch front port name | ||
0@Ethernet1 | ||
1@Ethernet2 | ||
2@Ethernet3 | ||
3@Ethernet4 | ||
4@Ethernet5 | ||
5@Ethernet6 | ||
6@Ethernet7 | ||
7@Ethernet8 | ||
8@Ethernet9 | ||
9@Ethernet10 | ||
10@Ethernet11 | ||
11@Ethernet12 | ||
12@Ethernet13 | ||
13@Ethernet14 | ||
14@Ethernet15 | ||
15@Ethernet16 | ||
16@Ethernet17 | ||
17@Ethernet18 | ||
18@Ethernet19 | ||
19@Ethernet20 | ||
20@Ethernet21 | ||
21@Ethernet22 | ||
22@Ethernet23 | ||
23@Ethernet24 | ||
24@Ethernet25 | ||
25@Ethernet26 | ||
26@Ethernet27 | ||
27@Ethernet28 | ||
28@Ethernet29 | ||
29@Ethernet30 | ||
30@Ethernet31 | ||
31@Ethernet32 |