[Sub-ports] Added test case which validates that packets are routed between sub-ports and SVI/L3 interface#3649
Merged
wangxin merged 2 commits intosonic-net:masterfrom Jul 8, 2021
Conversation
…etween sub-ports and SVI/L3 interface Signed-off-by: Oleksandr Kozodoi <oleksandrx.kozodoi@intel.com>
Signed-off-by: Oleksandr Kozodoi <oleksandrx.kozodoi@intel.com>
Contributor
Author
|
PR cannot be merged until merging of #3525. New test cases use the new tool for finding TCP/UDP packets in the buffer. |
|
This pull request introduces 1 alert and fixes 1 when merging 22cbe74 into 4327148 - view on LGTM.com new alerts:
fixed alerts:
|
|
This pull request fixes 1 alert when merging e87fc47 into 4327148 - view on LGTM.com fixed alerts:
|
Contributor
Author
|
@wangxin Could you please review? |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wangxin
requested changes
Jul 7, 2021
Collaborator
wangxin
left a comment
There was a problem hiding this comment.
Can you resolve the PR testing failure caused by this change?
2021-06-28T10:01:32.0202577Z ==================================== ERRORS ====================================
2021-06-28T10:01:32.0203441Z ________________________ ERROR collecting test session _________________________
2021-06-28T10:01:32.0205305Z /usr/local/lib/python2.7/dist-packages/py/_path/common.py:383: in visit
2021-06-28T10:01:32.0206067Z for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
2021-06-28T10:01:32.0207185Z /usr/local/lib/python2.7/dist-packages/py/_path/common.py:425: in gen
2021-06-28T10:01:32.0207764Z if p.check(dir=1) and (rec is None or rec(p))])
2021-06-28T10:01:32.0208867Z /usr/local/lib/python2.7/dist-packages/_pytest/main.py:667: in _recurse
2021-06-28T10:01:32.0209413Z ihook = self.gethookproxy(dirpath)
2021-06-28T10:01:32.0210214Z /usr/local/lib/python2.7/dist-packages/_pytest/main.py:482: in gethookproxy
2021-06-28T10:01:32.0210886Z my_conftestmodules = pm._getconftestmodules(fspath)
2021-06-28T10:01:32.0212050Z /usr/local/lib/python2.7/dist-packages/_pytest/config/__init__.py:424: in _getconftestmodules
2021-06-28T10:01:32.0212834Z mod = self._importconftest(conftestpath.realpath())
2021-06-28T10:01:32.0213929Z /usr/local/lib/python2.7/dist-packages/_pytest/config/__init__.py:463: in _importconftest
2021-06-28T10:01:32.0214338Z raise ConftestImportFailure(conftestpath, sys.exc_info())
2021-06-28T10:01:32.0215735Z E ConftestImportFailure: (local('/var/src/s/tests/sub_port_interfaces/conftest.py'), (<type 'exceptions.ImportError'>, ImportError('No module named pkt_filter.filter_pkt_in_buffer',), <traceback object at 0x7f1567a6d050>))
Contributor
Author
Hi @wangxin. This error is expected. New test cases use the tool from #3525. So this PR cannot be merged until merging #3525. Thanks for your comment! |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
wangxin
approved these changes
Jul 8, 2021
vmittal-msft
pushed a commit
to vmittal-msft/sonic-mgmt
that referenced
this pull request
Sep 28, 2021
…etween sub-ports and SVI/L3 interface (sonic-net#3649) What is the motivation for this PR? Coverage of sub-ports feature by test cases to improve the quality of SONiC. How did you do it? Added new test cases to PyTest. Implementation is based on the Sub-ports design spec How did you verify/test it? py.test --testbed=testbed-t0 --inventory=../ansible/lab --testbed_file=../ansible/testbed.csv --host-pattern=testbed-t0 -- module-path=../ansible/library sub_port_interfaces Any platform specific information? SONiC Software Version: SONiC.master.162-dirty-20210331.125032 Distribution: Debian 10.9 Kernel: 4.19.0-12-2-amd64 Build commit: ecaf97d Build date: Wed Mar 31 13:09:26 UTC 2021 Platform: x86_64-arista_7170_32cd HwSKU: Arista-7170-32CD-C32 ASIC: barefoot Supported testbed topology if it's a new test case? T0, T1 Signed-off-by: Oleksandr Kozodoi <oleksandrx.kozodoi@intel.com>
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
- What I did Ported a fix from libteam master to our master. Fixes sonic-net#4070 Fixes sonic-net#3649 - How I did it Applied patch jpirko/libteam@c723737 from upstream. - How to verify it Build image for your DUT and warm-reboot your DUT 10 times. Check that all PortChannels are up and no error messages in teamd.log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Oleksandr Kozodoi oleksandrx.kozodoi@intel.com
Description of PR
Summary:
Note:
Tests verify two cases of routing between sub-ports:
Type of change
Back port request
Approach
What is the motivation for this PR?
Coverage of sub-ports feature by test cases to improve the quality of SONiC.
How did you do it?
Added new test cases to PyTest.
Implementation is based on the Sub-ports design spec
How did you verify/test it?
py.test --testbed=testbed-t0 --inventory=../ansible/lab --testbed_file=../ansible/testbed.csv --host-pattern=testbed-t0 -- module-path=../ansible/library sub_port_interfacesAny platform specific information?
SONiC Software Version: SONiC.master.162-dirty-20210331.125032
Distribution: Debian 10.9
Kernel: 4.19.0-12-2-amd64
Build commit: ecaf97d
Build date: Wed Mar 31 13:09:26 UTC 2021
Platform: x86_64-arista_7170_32cd
HwSKU: Arista-7170-32CD-C32
ASIC: barefoot
Supported testbed topology if it's a new test case?
T0, T1
Documentation