-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cavm saiserver #114
Closed
Closed
Add cavm saiserver #114
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,30 @@ | ||
|
||
FROM docker-base | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y libsensors4-dev \ | ||
python \ | ||
python-dev | ||
|
||
COPY deps /root/deps | ||
|
||
RUN dpkg_apt() { [ -f $1 ] && { dpkg -i $1 || apt-get -y install -f; } || return 1; }; \ | ||
dpkg_apt /root/deps/xp-tools.deb \ | ||
&& dpkg_apt /root/deps/libsai.deb \ | ||
&& dpkg_apt /root/deps/sai.deb \ | ||
&& dpkg_apt /root/deps/libthrift-0.9.3_*.deb \ | ||
&& dpkg_apt /root/deps/libnl-3-200_*.deb \ | ||
&& dpkg_apt /root/deps/libnl-genl-3-200_*.deb \ | ||
&& dpkg_apt /root/deps/libnl-route-3-200_*.deb | ||
|
||
|
||
COPY ["deps/saiserver", "start.sh", "/usr/bin/"] | ||
|
||
COPY ["portmap.ini", "profile.ini", "/etc/sai/"] | ||
|
||
## Clean up | ||
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y | ||
RUN rm -rf deps | ||
|
||
ENTRYPOINT ["/bin/bash"] | ||
CMD ["/usr/bin/start.sh"] |
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 @@ | ||
# alias lanes | ||
Ethernet0 16,17,18,19 | ||
Ethernet4 20,21,22,23 | ||
Ethernet8 24,25,26,27 | ||
Ethernet12 28,29,30,31 | ||
Ethernet16 32,33,34,35 | ||
Ethernet20 36,37,38,39 | ||
Ethernet24 40,41,42,43 | ||
Ethernet28 44,45,46,47 | ||
Ethernet32 0,1,2,3 | ||
Ethernet36 4,5,6,7 | ||
Ethernet40 8,9,10,11 | ||
Ethernet44 12,13,14,15 | ||
Ethernet48 48,49,50,51 | ||
Ethernet52 52,53,54,55 | ||
Ethernet56 56,57,58,59 | ||
Ethernet60 60,61,62,63 | ||
Ethernet64 127,126,125,124 | ||
Ethernet68 123,122,121,120 | ||
Ethernet72 115,114,113,112 | ||
Ethernet76 119,118,117,116 | ||
Ethernet80 79,78,77,76 | ||
Ethernet84 75,74,73,72 | ||
Ethernet88 64,65,66,67 | ||
Ethernet92 71,70,68,69 | ||
Ethernet96 111,110,109,108 | ||
Ethernet100 107,106,105,104 | ||
Ethernet104 103,102,101,100 | ||
Ethernet108 99,98,97,96 | ||
Ethernet112 95,94,93,92 | ||
Ethernet116 91,90,89,88 | ||
Ethernet120 87,86,85,84 | ||
Ethernet124 83,82,81,80 |
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,4 @@ | ||
#SKU_128X10 | ||
mode=0 | ||
|
||
hwId=as7512 |
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,11 @@ | ||
#!/bin/bash | ||
|
||
function clean_up { | ||
service rsyslog stop | ||
} | ||
|
||
trap clean_up SIGTERM SIGKILL | ||
|
||
service rsyslog start | ||
|
||
/usr/bin/saiserver -p /etc/sai/profile.ini -f /etc/sai/portmap.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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the above is introduced in other commits, not this one.