-
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
Apply swss configuration in a determine way #39
Merged
Merged
Changes from all commits
Commits
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 |
---|---|---|
|
@@ -5,7 +5,11 @@ function start_app { | |
portsyncd $PORTSYNCD_ARGS & | ||
intfsyncd & | ||
neighsyncd & | ||
swssconfig & | ||
for file in $SWSSCONFIG_ARGS | ||
do | ||
swssconfig /etc/swss/config.d/$file | ||
sleep 1 | ||
done | ||
} | ||
|
||
function clean_up { | ||
|
@@ -27,12 +31,18 @@ ORCHAGENT_ARGS="" | |
|
||
PORTSYNCD_ARGS="" | ||
|
||
SWSSCONFIG_ARGS="00-copp.config.json " | ||
|
||
if [ "$onie_platform" == "x86_64-dell_s6000_s1220-r0" ]; then | ||
ORCHAGENT_ARGS+="-m $MAC_ADDRESS" | ||
PORTSYNCD_ARGS+="-p /etc/ssw/Force10-S6000/port_config.ini" | ||
SWSSCONFIG_ARGS+="td2.32ports.qos.1.json td2.32ports.qos.2.json td2.32ports.qos.3.json td2.32ports.qos.4.json td2.32ports.qos.5.json td2.32ports.qos.6.json " | ||
SWSSCONFIG_ARGS+="td2.32ports.buffers.1.json td2.32ports.buffers.2.json td2.32ports.buffers.3.json " | ||
elif [ "$aboot_platform" == "x86_64-arista_7050_qx32" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. arista platform should have the same SWSSCONFIG_ARGS since it is the same td2 platform. |
||
ORCHAGENT_ARGS+="-m $MAC_ADDRESS" | ||
PORTSYNCD_ARGS+="-p /etc/ssw/Arista-7050-QX32/port_config.ini" | ||
SWSSCONFIG_ARGS+="td2.32ports.qos.1.json td2.32ports.qos.2.json td2.32ports.qos.3.json td2.32ports.qos.4.json td2.32ports.qos.5.json td2.32ports.qos.6.json " | ||
SWSSCONFIG_ARGS+="td2.32ports.buffers.1.json td2.32ports.buffers.2.json td2.32ports.buffers.3.json " | ||
elif [ "$onie_platform" == "x86_64-mlnx_x86-r5.0.1400" ]; then | ||
PORTSYNCD_ARGS+="-p /etc/ssw/ACS-MSN2700/port_config.ini" | ||
elif [ "$onie_platform" == "x86_64-accton_as7512_32x-r0" ]; then | ||
|
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.
we do not need sleep.
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 is improved here?
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.
this will be improved later with code changes