-
Notifications
You must be signed in to change notification settings - Fork 545
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
Remove update of mgmt oper status in swss #3439
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
LGTM.
@SuvarnaMeenakshi , could you link the original PR that added this feature? Is there any other dependency that we've to address? |
|
@@ -50,43 +49,6 @@ LinkSync::LinkSync(DBConnector *appl_db, DBConnector *state_db) : | |||
{ | |||
string key = idx_p->if_name; | |||
|
|||
/* Explicitly store management ports oper status into the state database. |
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.
Why do we need to keep the for loop
as this was also added as part of #630
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.
Yes, we don't need this, removed to match initial PR changes
@@ -197,17 +159,6 @@ void LinkSync::onMsg(int nlmsg_type, struct nl_object *obj) | |||
nlmsg_type, key.c_str(), admin, oper, addrStr, ifindex, master); | |||
} | |||
|
|||
if (!key.compare(0, MGMT_PREFIX.length(), MGMT_PREFIX)) |
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.
I think we should remove the check at line 134 as well
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.
Removed this : key.compare(0, MGMT_PREFIX.length(), MGMT_PREFIX)
@SuvarnaMeenakshi, can you please address the comments? |
in PR sonic-net#630 Signed-off-by: Suvarna Meenakshi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
What I did
Issue to be fix: Currently operational status of mgmt interface is not present or correct for multi-asic devices.
Why I did it
Initial PR that added mgmt oper status feature in swss: #630
sonic-net/sonic-buildimage#21245 adds a script to update oper status of management interface periodically. In doing so, we no longer need to update oper status of mgmt interface in swss.
How I verified it
Verified on single-asic platform
Details if related