Reducing injected interface template length to void hitting max length#2459
Closed
vaibhavhd wants to merge 1 commit intosonic-net:masterfrom
Closed
Reducing injected interface template length to void hitting max length#2459vaibhavhd wants to merge 1 commit intosonic-net:masterfrom
vaibhavhd wants to merge 1 commit intosonic-net:masterfrom
Conversation
neethajohn
reviewed
Nov 4, 2020
Contributor
Author
|
Retest vsimage please |
yxieca
approved these changes
Nov 5, 2020
neethajohn
approved these changes
Nov 5, 2020
Contributor
Author
|
Retest vsimage please |
2 similar comments
Contributor
Author
|
Retest vsimage please |
Contributor
Author
|
Retest vsimage please |
This was referenced Nov 8, 2020
Contributor
Author
|
Retest vsimage please |
1 similar comment
Collaborator
|
Retest vsimage please |
Collaborator
|
retest vsimage please |
1 similar comment
Collaborator
|
retest vsimage please |
Collaborator
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
7272bf37 Revert "Revert "[DHCPv6] [202012] Update the dhcpv6_relay config/show cli (sonic-net#2271)" (sonic-net#2336)" (sonic-net#2459) Signed-off-by: Vivek Reddy <vkarri@nvidia.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of PR
Summary: Fix for
add-topofailure seen when deploying testbeds with long injected interface names.Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
Interface Name Size (
IFNAMSIZ) is set to 16 characters https://elixir.bootlin.com/linux/v5.6/source/include/uapi/linux/if.h#L33The interface name that
add-toposcript adds is indeed 16 chars (for eg. - inje-vmsvc1-1-58) , but 16 character limit set by Linux also includes a trailing NULL. So we should really limit the size to 15 USER VISIBLE length.How did you do it?
Reduced the injected interface template size by 1 char.
Reproduced the error in the server.
Tried to reduce the size and the error is not seen anymore.
How did you verify/test it?
Modified the template to one size small, and the add-topo script successfully passed.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation