Skip to content
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
febcacd
Added test case to verify ebtables rules.
abdosi Feb 6, 2021
9582616
Merge remote-tracking branch 'upstream/master'
abdosi Feb 9, 2021
940ebe4
Merge remote-tracking branch 'upstream/master'
abdosi Feb 28, 2021
36feb13
Merge remote-tracking branch 'upstream/master'
abdosi Mar 9, 2021
ab4beee
Merge remote-tracking branch 'upstream/master'
abdosi Mar 16, 2021
8d59326
Merge remote-tracking branch 'upstream/master'
abdosi Mar 18, 2021
fa03609
Merge remote-tracking branch 'upstream/master'
abdosi Mar 18, 2021
532639a
Merge remote-tracking branch 'upstream/master'
abdosi May 14, 2021
0833669
Merge remote-tracking branch 'upstream/master'
abdosi Jun 28, 2021
f2dbf92
Merge remote-tracking branch 'upstream/master'
abdosi Oct 4, 2021
915dc97
Merge remote-tracking branch 'upstream/master'
abdosi Oct 12, 2021
1aacc7a
Merge remote-tracking branch 'upstream/master'
abdosi Oct 12, 2021
6ca8577
Merge remote-tracking branch 'upstream/master'
abdosi Oct 13, 2021
7ad4900
Merge remote-tracking branch 'upstream/master'
abdosi Oct 27, 2021
a6d5c16
Fix to avoid overlap of Front Port Channel and Internal Pot Channel
abdosi Oct 27, 2021
03453b0
Merge remote-tracking branch 'upstream/master'
abdosi Nov 18, 2021
5fce19c
Merge remote-tracking branch 'upstream/master'
abdosi Jan 21, 2022
501698b
Merge branch 'master' of https://github.com/abdosi/sonic-mgmt
abdosi Feb 13, 2022
9d6f058
Merge remote-tracking branch 'upstream/master'
abdosi May 23, 2023
e7b6504
Merge remote-tracking branch 'upstream/master'
abdosi Jun 27, 2023
402c17c
Merge remote-tracking branch 'upstream/master'
abdosi Aug 4, 2023
fe770ed
Increase wait time for link up post config reload/minigraph for modular
abdosi Aug 4, 2023
dddc82a
Merge remote-tracking branch 'upstream/master'
abdosi Aug 16, 2023
c3f8665
Merge remote-tracking branch 'upstream/master'
abdosi Sep 15, 2023
c17e4f5
Increased socket buffer for PTF while running QoS test
abdosi Sep 16, 2023
3878c7d
Merge branch 'master' of https://github.com/abdosi/sonic-mgmt
abdosi Sep 16, 2023
6266b90
Merge remote-tracking branch 'upstream/master'
abdosi Nov 14, 2023
37f880d
Merge remote-tracking branch 'upstream/master'
abdosi Dec 16, 2023
00a0dc6
Merge remote-tracking branch 'upstream/master'
abdosi Dec 30, 2023
a3a5999
Merge branch 'sonic-net:master' into master
abdosi Mar 7, 2024
9f1a2a7
Update nexthopgroup mapping for td3
abdosi Mar 7, 2024
f07b31e
Update config_reload.py
abdosi Mar 7, 2024
03fe4fe
Merge branch 'master' of https://github.com/abdosi/sonic-mgmt
abdosi Mar 7, 2024
825c8b2
Fix pre-commit
abdosi Mar 7, 2024
0b954ec
Merge remote-tracking branch 'upstream/master'
abdosi Jun 4, 2024
7293537
Fix for https://github.com/sonic-net/sonic-buildimage/issues/19174
abdosi Jun 4, 2024
67a8074
Update multi_asic.py
abdosi Jun 4, 2024
5176515
Fix Precommit
abdosi Jun 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions tests/common/devices/multi_asic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class MultiAsicSonicHost(object):
So, even a single asic pizza box is represented as a MultiAsicSonicHost with 1 SonicAsic.
"""

_DEFAULT_SERVICES = ["pmon", "snmp", "lldp", "database"]
_DEFAULT_SERVICES = ["pmon", "snmp", "database"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not needed here. lldp still applies to Default asic service list

def __init__(self, ansible_adhoc, hostname, duthosts, topo_type):
""" Initializing a MultiAsicSonicHost.
Expand Down Expand Up @@ -64,13 +64,16 @@ def critical_services_tracking_list(self):
"""
service_list = []
active_asics = self.asics
if self.sonichost.is_supervisor_node() and self.get_facts()['asic_type'] != 'vs':
active_asics = []
sonic_db_cli_out = self.command("sonic-db-cli CHASSIS_STATE_DB keys \"CHASSIS_FABRIC_ASIC_TABLE|asic*\"")
for a_asic_line in sonic_db_cli_out["stdout_lines"]:
a_asic_name = a_asic_line.split("|")[1]
a_asic_instance = self.asic_instance_from_namespace(namespace=a_asic_name)
active_asics.append(a_asic_instance)
if self.sonichost.is_supervisor_node():
self._DEFAULT_SERVICES.append("lldp")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuvarnaMeenakshi : updated.

if self.get_facts()['asic_type'] != 'vs':
active_asics = []
sonic_db_cli_out = \
self.command("sonic-db-cli CHASSIS_STATE_DB keys \"CHASSIS_FABRIC_ASIC_TABLE|asic*\"")
for a_asic_line in sonic_db_cli_out["stdout_lines"]:
a_asic_name = a_asic_line.split("|")[1]
a_asic_instance = self.asic_instance_from_namespace(namespace=a_asic_name)
active_asics.append(a_asic_instance)
service_list += self._DEFAULT_SERVICES

config_facts = self.config_facts(host=self.hostname, source="running")['ansible_facts']
Expand All @@ -94,6 +97,9 @@ def critical_services_tracking_list(self):
self.sonichost.DEFAULT_ASIC_SERVICES.remove(service)
if config_facts['FEATURE'][service]['state'] == "disabled":
self.sonichost.DEFAULT_ASIC_SERVICES.remove(service)
else:
self._DEFAULT_SERVICES.append("lldp")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

@abdosi abdosi Jun 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SuvarnaMeenakshi

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I missing something?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, misunderstood the condition logic here.


for asic in active_asics:
service_list += asic.get_critical_services()
self.sonichost.reset_critical_services_tracking_list(service_list)
Expand Down