Remove lldp as default service for Chassis#13115
Conversation
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
chassis Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
as we are seding packet > 4k in some cases where there is HBM involved to fill the buffer faster. Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
|
@anamehra for viz. |
|
|
||
| _DEFAULT_SERVICES = ["pmon", "snmp", "lldp", "database"] | ||
| _DEFAULT_SERVICES = ["pmon", "snmp", "database"] | ||
|
|
There was a problem hiding this comment.
https://github.com/sonic-net/sonic-mgmt/blob/master/tests/common/devices/sonic.py#L43
and line #53 may also need to be fixed. Please check.
There was a problem hiding this comment.
It is not needed here. lldp still applies to Default asic service list
| service_list = [] | ||
| active_asics = self.asics | ||
| if self.sonichost.is_supervisor_node() and self.get_facts()['asic_type'] != 'vs': | ||
| self._DEFAULT_SERVICES.append("lldp") |
There was a problem hiding this comment.
based on this condition, lldp will not be added in DEFAULT_SERVICES for VS supervisor, is that right?
That will be an issue for VS testbed.
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
| if config_facts['FEATURE'][service]['state'] == "disabled": | ||
| self.sonichost.DEFAULT_ASIC_SERVICES.remove(service) | ||
| else: | ||
| self._DEFAULT_SERVICES.append("lldp") |
There was a problem hiding this comment.
do we need this append here?
This will append lldp DEFAULT_SERVICES for linecard module as well.
Just tried this on a Linecard, and I see that this function https://github.com/sonic-net/sonic-mgmt/blob/67a8074b0bd63c456c315e2649208fcdb4f89045/tests/common/devices/sonic.py#L250C5-L250C35 returns "True"
import sonic_platform
import sonic_platform.platform as P
print(P.Platform().get_chassis().is_modular_chassis())
True
There was a problem hiding this comment.
Yes . LLDP will be added as Default Service for Supervisor and Fixed Platoforms (else is for Fixed platforms)
For Modular chassis LLDP will not be added to Default Service List which means for LC we will not add as per our requirement.
There was a problem hiding this comment.
Am I missing something?
There was a problem hiding this comment.
got it, misunderstood the condition logic here.
|
@wangxin : please help with merge of this. |
|
Can this be backported to 202405? |
|
Hi @abdosi , tests are still failing after this change for lldp, It is because lldp is being added as required status check for RP, but looks like this causes it to get added for LCs too 02:46:39 recover.recover L0185 WARNING| Try to recover aaa14-lc0 using method adaptive |
Why I did: To fix this sonic-net/sonic-buildimage#19174 On Modular chassis for LC lldp in global scope is not needed. How I verify: Manual changes Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
|
Cherry-pick PR to 202405: #13248 |
Why I did: To fix this sonic-net/sonic-buildimage#19174 On Modular chassis for LC lldp in global scope is not needed. How I verify: Manual changes Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Why I did: To fix this sonic-net/sonic-buildimage#19174 On Modular chassis for LC lldp in global scope is not needed. How I verify: Manual changes Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Why I did:
To fix this sonic-net/sonic-buildimage#19174
On Modular chassis for LC lldp in global scope is not needed.
How I verify:
Manual changes