-
Notifications
You must be signed in to change notification settings - Fork 175
Create sub CMIS FSM for DP decomission #608
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
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@prgeor, @mihirpat1 : Could you please review these changes? |
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.
@AnoopKamath can you check the proposal sent offline?
Hi @AnoopKamath, did you get a chance to look at the updated proposal? |
Hi @vivekrnv : Had meeting with @prgeor offline and working on new proposal. Will update the review soon |
/azp run |
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
@AnoopKamath branch conflict |
@@ -1324,6 +1359,11 @@ def task_worker(self): | |||
self.post_port_active_apsel_to_db(api, lport, host_lanes_mask, reset_apsel=True) | |||
self.update_port_transceiver_status_table_sw_cmis_state(lport, CMIS_STATE_READY) | |||
continue | |||
elif self.is_decommission_required(lport, api): | |||
self.port_dict[lport]['is_decomm_required'] = True | |||
api.decommission_all_datapaths(False) |
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.
@AnoopKamath are you proposing to change the API? It does not take any argument True/False?
@@ -815,13 +821,26 @@ def get_cmis_media_lanes_mask(self, api, appl, lport, subport): | |||
|
|||
return media_lanes_mask | |||
|
|||
def is_appl_reconfigure_required(self, api, app_new): | |||
def is_decommission_required(self, lport, api): |
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.
@AnoopKamath given the fact that the default application is not matching with configured speed, is it safe to say that we need to decommission all 8 lanes for both:-
- No breakout
- Subport with same application
- Subport with mixed application
My understanding its safe decommission all 8 lanes (for all 3 above cases) because I can't think of a mixed application as the default. If not, can you give me an example?
Description
Fix : sonic-net/sonic-buildimage#21603
Create a sub CMIS FSM while decommissioning the DPs. Each of these state will be non blocking wait to avoid device getting stuck in one state. Also, set the decommission glag at physical port layer to help mix mode settings
Motivation and Context
How Has This Been Tested?
Decommission lanes of the port which doesn't has required AppCode set to default
Additional Information (Optional)