[TPID CONFIG] Added TPID configuration CLI support #1618
Merged
+535
−7
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.
Signed-off-by: Gen-Hwa Chiang gechiang@microsoft.com
What I did
This PR is part of the TPID CONFIG SONiC feature set to support port/LAG TPID configuration.
TPID HLD PR: (sonic-net/SONiC#681)
There are total of 3 PRs across different submodules to achieve this feature support.
Please refer to the TPID HLD listed above for more details on the TPID configuration feature support.
Here is a quick summary for this PR changes:
Here is some sample output of the TPID configuration attempts:
How to verify it
Besides validating this on a HW SKU that is capable of handling TPID attribute setting, new unit testcase was also added to ensure most of the TPID feature code is covered:
New command output (if the output of a command-line utility has changed)
As part of this feature, a new show command "show interface tpid" is also added.
Here is some sample output:
Corresponding command reference doc is also updated to include the new changes for config TPID and show TPID related commands.