-
Notifications
You must be signed in to change notification settings - Fork 543
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
[orchagent] Add support for Path Tracing Midpoint #2903
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4abd69c
[orchagent]: Add support for SRv6 Path Tracing Midpoint
cscarpitta ba33dce
[doc] Add Path Tracing attributes to SWSS doc
cscarpitta 50031d8
[tests]: Add SRv6 PT Midpoint test to portmgr UT
cscarpitta 8faaa8b
[tests]: Fix FdbOrch UT failures due to SwitchOrch not initialized
cscarpitta 281cfb2
[tests]: Fix MuxOrch UT failures due to SwitchOrch not initialized
cscarpitta a3ac583
[tests] Mock get_switch_attribute() SAI API
cscarpitta b02696a
[tests]: Add SRv6 PT Midpoint test to portsorch UT
cscarpitta 985f376
[tests]: Add SRv6 PT Midpoint test to test_port.py
cscarpitta 5d9bb69
Merge branch 'master' into srv6_pt_midpoint
cscarpitta 14e1bd7
Merge branch 'master' into srv6_pt_midpoint
prsunny 267fcd3
Merge branch 'master' into srv6_pt_midpoint
cscarpitta 3b8ad3e
Fix test coverage
cscarpitta 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
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
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
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
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
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 |
---|---|---|
|
@@ -53,38 +53,45 @@ | |
#define PORT_ROLE_REC "Rec" | ||
#define PORT_ROLE_DPC "Dpc" | ||
|
||
#define PORT_ALIAS "alias" | ||
#define PORT_INDEX "index" | ||
#define PORT_LANES "lanes" | ||
#define PORT_SPEED "speed" | ||
#define PORT_AUTONEG "autoneg" | ||
#define PORT_ADV_SPEEDS "adv_speeds" | ||
#define PORT_INTERFACE_TYPE "interface_type" | ||
#define PORT_ADV_INTERFACE_TYPES "adv_interface_types" | ||
#define PORT_FEC "fec" | ||
#define PORT_MTU "mtu" | ||
#define PORT_TPID "tpid" | ||
#define PORT_PFC_ASYM "pfc_asym" | ||
#define PORT_LEARN_MODE "learn_mode" | ||
#define PORT_LINK_TRAINING "link_training" | ||
#define PORT_PREEMPHASIS "preemphasis" | ||
#define PORT_IDRIVER "idriver" | ||
#define PORT_IPREDRIVER "ipredriver" | ||
#define PORT_PRE1 "pre1" | ||
#define PORT_PRE2 "pre2" | ||
#define PORT_PRE3 "pre3" | ||
#define PORT_MAIN "main" | ||
#define PORT_POST1 "post1" | ||
#define PORT_POST2 "post2" | ||
#define PORT_POST3 "post3" | ||
#define PORT_ATTN "attn" | ||
#define PORT_OB_M2LP "ob_m2lp" | ||
#define PORT_OB_ALEV_OUT "ob_alev_out" | ||
#define PORT_OBPLEV "obplev" | ||
#define PORT_OBNLEV "obnlev" | ||
#define PORT_REGN_BFM1P "regn_bfm1p" | ||
#define PORT_REGN_BFM1N "regn_bfm1n" | ||
#define PORT_ROLE "role" | ||
#define PORT_ADMIN_STATUS "admin_status" | ||
#define PORT_DESCRIPTION "description" | ||
#define PORT_SUBPORT "subport" | ||
#define PORT_PT_TIMESTAMP_TEMPLATE_1 "template1" | ||
#define PORT_PT_TIMESTAMP_TEMPLATE_2 "template2" | ||
#define PORT_PT_TIMESTAMP_TEMPLATE_3 "template3" | ||
#define PORT_PT_TIMESTAMP_TEMPLATE_4 "template4" | ||
|
||
#define PORT_ALIAS "alias" | ||
#define PORT_INDEX "index" | ||
#define PORT_LANES "lanes" | ||
#define PORT_SPEED "speed" | ||
#define PORT_AUTONEG "autoneg" | ||
#define PORT_ADV_SPEEDS "adv_speeds" | ||
#define PORT_INTERFACE_TYPE "interface_type" | ||
#define PORT_ADV_INTERFACE_TYPES "adv_interface_types" | ||
#define PORT_FEC "fec" | ||
#define PORT_MTU "mtu" | ||
#define PORT_TPID "tpid" | ||
#define PORT_PFC_ASYM "pfc_asym" | ||
#define PORT_LEARN_MODE "learn_mode" | ||
#define PORT_LINK_TRAINING "link_training" | ||
#define PORT_PREEMPHASIS "preemphasis" | ||
#define PORT_IDRIVER "idriver" | ||
#define PORT_IPREDRIVER "ipredriver" | ||
#define PORT_PRE1 "pre1" | ||
#define PORT_PRE2 "pre2" | ||
#define PORT_PRE3 "pre3" | ||
#define PORT_MAIN "main" | ||
#define PORT_POST1 "post1" | ||
#define PORT_POST2 "post2" | ||
#define PORT_POST3 "post3" | ||
#define PORT_ATTN "attn" | ||
#define PORT_OB_M2LP "ob_m2lp" | ||
#define PORT_OB_ALEV_OUT "ob_alev_out" | ||
#define PORT_OBPLEV "obplev" | ||
#define PORT_OBNLEV "obnlev" | ||
#define PORT_REGN_BFM1P "regn_bfm1p" | ||
#define PORT_REGN_BFM1N "regn_bfm1n" | ||
#define PORT_ROLE "role" | ||
#define PORT_ADMIN_STATUS "admin_status" | ||
#define PORT_DESCRIPTION "description" | ||
#define PORT_SUBPORT "subport" | ||
#define PORT_PT_INTF_ID "pt_interface_id" | ||
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. can you update these new fields in doc/swss-schema.md 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. @kperumalbfn I added the two fields to the documentation: c9ff12e |
||
#define PORT_PT_TIMESTAMP_TEMPLATE "pt_timestamp_template" |
Oops, something went wrong.
Oops, something went wrong.
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.
should we reject this for port-channel?
Also check for the path-tracing interface id within the valid range. I believe it is between 1-4K as per HLD. Please add this case in swss tests.
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.
@kperumalbfn I did the requested changes: