Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_ifupdown2_ipv4_ecmp (Failed) #403

Open
hubogee opened this issue Oct 3, 2023 · 0 comments
Open

test_ifupdown2_ipv4_ecmp (Failed) #403

hubogee opened this issue Oct 3, 2023 · 0 comments
Labels
regression issue found in regression

Comments

@hubogee
Copy link
Contributor

hubogee commented Oct 3, 2023

Build: 2023-09-27-0724

Test results: http://10.36.118.11/TestResults/09-29-2023-17-52-01-616779_fullRegression/report_suite_group_functional.html?sort=result

Test results will be automatically removed in 14 days

tx_port = '10.36.118.199:1:11'
rx_ports = ['10.36.118.199:1:9', '10.36.118.199:1:10']

async def verify_ecmp_distribution(stats, tx_port, rx_ports):
    """
    Verify Ecmp packet distribution between ports
    Args:
        stats: Ixia statistics
        tx_port (object): Tg Port object
        rx_ports (list): List with Tg Ports objects
    """
    p_err_msg = 'Port {} received pkts {} expected => {}'
    rx_sum_msg = 'Tx pkts sent {} isnt equal to sum of all rx ports received {}'
    tx_pkts_sent = [int(row['Frames Tx.']) for row in stats.Rows if row['Port Name'] == tx_port][0]
    rx_pkts_sum = []
    # We cant expected that amount of pkts traversed through each nexthop will be equal
    # Check that at least 1/10 of traffic went through port and verify sum of all rx packets is equal to tx packets
    expected = tx_pkts_sent // 10
    for row in stats.Rows:
        if row['Port Name'] in rx_ports:
          assert int(row[RX_STATS]) >= expected, p_err_msg.format(row['Port Name'], row[RX_STATS], expected)

E AssertionError: Port 10.36.118.199:1:9 received pkts 2005 expected => 842154
E assert 2005 >= 842154
E + where 2005 = int('2005')

AssertionError: Port 10.36.118.199:1:9 received pkts 2005 expected => 842154assert 2005 >= 842154 + ...

@hubogee hubogee changed the title test_ifupdown2_ipv4_ecmp test_ifupdown2_ipv4_ecmp failed Oct 3, 2023
@hubogee hubogee changed the title test_ifupdown2_ipv4_ecmp failed test_ifupdown2_ipv4_ecmp (Failed) Oct 3, 2023
@isgmano isgmano added the regression issue found in regression label Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression issue found in regression
Projects
None yet
Development

No branches or pull requests

2 participants