Remove update of mgmt oper status in swss#3439
Conversation
Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@SuvarnaMeenakshi , could you link the original PR that added this feature? Is there any other dependency that we've to address? |
|
| { | ||
| string key = idx_p->if_name; | ||
|
|
||
| /* Explicitly store management ports oper status into the state database. |
There was a problem hiding this comment.
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.
Yes, we don't need this, removed to match initial PR changes
| 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.
I think we should remove the check at line 134 as well
There was a problem hiding this comment.
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 <sumeenak@microsoft.com>
|
/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). |
|
Cherry-pick PR to msft-202405: Azure/sonic-swss.msft#20 |
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: sonic-net#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. --------- Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
This reverts commit 6f30ddd.
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: sonic-net#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. --------- Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com>
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: sonic-net#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. --------- Signed-off-by: Suvarna Meenakshi <sumeenak@microsoft.com> Signed-off-by: Baorong Liu <96146196+baorliu@users.noreply.github.com>
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
Single ASIC Arista device verification along with Add script to periodically update oper status of management interface sonic-buildimage#21245 changes
Ran the below bash script to verify the state of STATE_DB: MGMT_OPER_STATUS table and also execute config_reload, verify if STATE_DB is flushed out and repopulated after monit starts periodic script.
Result of above script:
Details if related