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

Fix test failure of test_multinpu_cfggen.py when port2cable length is define in buffer_default_*.j2 #5437

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Sep 23, 2020

Why I did:
Fix test failure of test_multinpu_cfggen.py when port2cable length is define in buffer_default_*.j2
because of which internal cable length never gets
define and cause failure in test case test_multinpu_cfggen.py

How I did:
Added 'internal' key always in port2cable dict if not previously define

How I verify:
Test case was passing after the change.

buffer_default_*.j2 because of which internal cable length never gets
define and cause failure in test case test_multinpu_cfggen.py

Signed-off-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>
Comment on lines +52 to +54
{%- if 'internal' not in ports2cable %}
{%- set _ = ports2cable.update({'internal': '5m'}) %}
{%- endif -%}
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer not to have here. Which specific test case is failing.

Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed with Abhishek, devices that override ports2cable will have this problem. Fix looks good.

@smaheshm
Copy link
Contributor

Please wait for all test cases to pass.

@abdosi abdosi merged commit 0483255 into sonic-net:master Sep 23, 2020
@abdosi abdosi deleted the qos_template branch September 23, 2020 15:07
abdosi added a commit that referenced this pull request Sep 28, 2020
buffer_default_*.j2 because of which internal cable length never gets
define and cause failure in test case test_multinpu_cfggen.py

Signed-off-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>

Co-authored-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
buffer_default_*.j2 because of which internal cable length never gets
define and cause failure in test case test_multinpu_cfggen.py

Signed-off-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>

Co-authored-by: Abhishek Dosi <abdosi@abdosi-ubuntu-vm0.nwp1qucpfg5ejooejenqshkj3e.cx.internal.cloudapp.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants