-
Notifications
You must be signed in to change notification settings - Fork 211
[CMIS]Improved 400G link bring up sequence #254
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
57cb73c
Improved 400G link bring up sequence
prgeor 9b00b47
Event based handling
prgeor 5c42c57
Remove unused functions
prgeor 0204a07
Force DP to remain in DpInitialized State state on admin shutdown
prgeor 69d3a54
Added test case
prgeor b9cb34d
Skip CMIS task manager based upon flag
prgeor be6d509
Addressed review comments
prgeor 647cff7
Fix xcvrd crash
prgeor 374972e
Fix test failure
prgeor b52a3f6
Listen only to 'APPL_DB's admin_status
prgeor 3d25e45
Fix typo
prgeor 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -994,7 +994,10 @@ def on_port_update_event(self, port_change_event): | |
| self.port_dict[lport]['lanes'] = port_change_event.port_dict['lanes'] | ||
| if 'host_tx_ready' in port_change_event.port_dict: | ||
| self.port_dict[lport]['host_tx_ready'] = port_change_event.port_dict['host_tx_ready'] | ||
| if 'admin_status' in port_change_event.port_dict: | ||
| if 'admin_status' in port_change_event.port_dict and 'oper_status' in port_change_event.dict: | ||
| # At times 'admin_status' is NOT the same in the PORT_TABLE of APPL_DB and STATE_DB | ||
| # We dont have better way to check if 'admin_status' is from APPL_DB or STATE_DB so this | ||
| # check is put temporarily to list only to APPL_DB's admin_status and ignore that of STATE_DB | ||
|
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. instead of 'list only' it should be 'listen only' |
||
| self.port_dict[lport]['admin_status'] = port_change_event.port_dict['admin_status'] | ||
| self.force_cmis_reinit(lport, 0) | ||
| else: | ||
|
|
||
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.
in port_change_event.dict: -> in port_change_event.port_dict: