Skip to content

Bug: drop_packets/test_drop_counters.py IPv6 only topo Not Supported #19921

@yanmo96

Description

@yanmo96

Is it platform specific

generic

Importance or Severity

Medium

Description of the bug

The test is looking for IPv4 while is running on IPv6 only topo testbed.

Steps to Reproduce

Run test on IPv6 only topo testbed.

Actual Behavior and Expected Behavior

May want to consider IPv6 only testbed. Or have a separate IPv6 test for it.

Relevant log output

@pytest.fixture
    def rif_port_down(duthosts, enum_rand_one_per_hwsku_frontend_hostname, setup, fanouthosts):
        """Shut RIF interface and return neighbor IP address attached to this interface."""
        duthost = duthosts[enum_rand_one_per_hwsku_frontend_hostname]
        loganalyzer = LogAnalyzer(ansible_host=duthost, marker_prefix="drop_packet_rif_port_down")
    
        if not setup["rif_members"]:
            pytest.skip("RIF interface is absent")
        rif_member_iface = list(setup["rif_members"].keys())[0]
    
        vm_name = setup["mg_facts"]["minigraph_neighbors"][rif_member_iface].get("name", None)
        pytest_assert(vm_name, 'Neighbor not found for RIF member "{}"'.format(rif_member_iface))
    
        ip_dst = None
        for item in setup["mg_facts"]["minigraph_bgp"]:
            if item["name"] == vm_name and netaddr.valid_ipv4(item["addr"]):
                ip_dst = item["addr"]
                break
>       pytest_assert(ip_dst, 'Unable to find IP address for neighbor "{}"'.format(vm_name))
E       Failed: Unable to find IP address for neighbor "ARISTA41T1"

Output of show version

Attach files (if any)

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions