Skip to content

Commit

Permalink
Reg: Voq Chassis condition & import sort,comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vikshaw-Nokia committed Dec 18, 2024
1 parent 5fb4e1a commit ce13d7a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions tests/pc/test_po_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@

import pytest
import logging
from tests.common.reboot import reboot

from ptf import testutils, mask, packet
from tests.common.helpers.sonic_db import VoqDbCli

from tests.common import config_reload
import ipaddress
from tests.common.reboot import wait_for_startup

from tests.common.platform.processes_utils import wait_critical_processes
from tests.common.reboot import wait_for_startup, reboot
from tests.common.utilities import wait_until
from tests.common.helpers.assertions import pytest_assert
from tests.voq.voq_helpers import verify_no_routes_from_nexthop
from tests.common.helpers.sonic_db import VoqDbCli


pytestmark = [
pytest.mark.topology('any'),
Expand Down Expand Up @@ -503,15 +505,22 @@ def test_po_update_with_higher_lagids(
ptfadapter,
reload_testbed_on_failed, localhost):
"""
Test port channel traffic with higher lag ids.
Test Port Channel Traffic with Higher LAG IDs:
1. The test involves rebooting the DUT,
which resets the LAG ID allocation, starting from 1.
2. After the initial verification of traffic on the port channel (PC) mesh, the
LAG ID allocation is incremented by temporarily adding and deleting port channels.
3. Verify the LAG set sanity and ensure traffic stability.
4. Repeat the process for the higher LAG IDs.
"""
duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]

# Check if the device is a modular chassis and the topology is T2
is_chassis = duthost.get_facts().get("modular_chassis")
if not (is_chassis and tbinfo['topo']['type'] == 't2'):
if not (is_chassis and tbinfo['topo']['type'] == 't2' and duthost.facts['switch_type'] == "voq"):
# Skip the test if the setup is not T2 Chassis
pytest.skip("Test is Applicable for T2 Chassis Setup")
pytest.skip("Test is Applicable for T2 VOQ Chassis Setup")

dut_mg_facts = duthost.get_extended_minigraph_facts(tbinfo)

Expand Down

0 comments on commit ce13d7a

Please sign in to comment.