-
Notifications
You must be signed in to change notification settings - Fork 770
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_dynamic_acl incompatible issue on dualtor #17274
Merged
yejianquan
merged 2 commits into
sonic-net:master
from
ZhaohuiS:ZhaoohuiS/secondary_dynamic_acl_dual
Mar 3, 2025
Merged
Fix test_dynamic_acl incompatible issue on dualtor #17274
yejianquan
merged 2 commits into
sonic-net:master
from
ZhaohuiS:ZhaoohuiS/secondary_dynamic_acl_dual
Mar 3, 2025
+10
−9
Conversation
This file contains 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
Signed-off-by: Zhaohui Sun <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Zhaohui Sun <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
yejianquan
approved these changes
Mar 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Mar 3, 2025
* Fix test_dynamic_acl uncompatible issue on dualtor Signed-off-by: Zhaohui Sun <[email protected]> Description of PR Summary: Fixes # (issue) test_dynamic_acl failed on dualtor testbed due to: 28/02/2025 16:40:42 __init__._fixture_func_decorator L0073 ERROR | AttributeError("'AnsibleUnsafeText' object has no attribute 'get'") Traceback (most recent call last): File "/data/tests/common/plugins/log_section_start/__init__.py", line 71, in _fixture_func_decorator return fixture_func(*args, **kargs) File "/data/tests/generic_config_updater/test_dynamic_acl.py", line 227, in setup if config_facts['VLAN_INTERFACE'][vlan_name][vlan_ip_address].get("secondary"): AttributeError: 'AnsibleUnsafeText' object has no attribute 'get' It's because the VLAN_INTERFACE is like this on dualtor: "VLAN_INTERFACE": { "Vlan1000": { "grat_arp": "enabled", "proxy_arp": "enabled", "192.168.0.1/21": { }, "fc02:1000::1/64": { } } }, Approach What is the motivation for this PR? How did you do it? Avoid to get secondary key from a string object Signed-off-by: Zhaohui Sun <[email protected]>
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Mar 3, 2025
* Fix test_dynamic_acl uncompatible issue on dualtor Signed-off-by: Zhaohui Sun <[email protected]> Description of PR Summary: Fixes # (issue) test_dynamic_acl failed on dualtor testbed due to: 28/02/2025 16:40:42 __init__._fixture_func_decorator L0073 ERROR | AttributeError("'AnsibleUnsafeText' object has no attribute 'get'") Traceback (most recent call last): File "/data/tests/common/plugins/log_section_start/__init__.py", line 71, in _fixture_func_decorator return fixture_func(*args, **kargs) File "/data/tests/generic_config_updater/test_dynamic_acl.py", line 227, in setup if config_facts['VLAN_INTERFACE'][vlan_name][vlan_ip_address].get("secondary"): AttributeError: 'AnsibleUnsafeText' object has no attribute 'get' It's because the VLAN_INTERFACE is like this on dualtor: "VLAN_INTERFACE": { "Vlan1000": { "grat_arp": "enabled", "proxy_arp": "enabled", "192.168.0.1/21": { }, "fc02:1000::1/64": { } } }, Approach What is the motivation for this PR? How did you do it? Avoid to get secondary key from a string object Signed-off-by: Zhaohui Sun <[email protected]>
Cherry-pick PR to 202405: #17287 |
Cherry-pick PR to 202411: #17286 |
This was referenced Mar 3, 2025
mssonicbld
pushed a commit
that referenced
this pull request
Mar 3, 2025
* Fix test_dynamic_acl uncompatible issue on dualtor Signed-off-by: Zhaohui Sun <[email protected]> Description of PR Summary: Fixes # (issue) test_dynamic_acl failed on dualtor testbed due to: 28/02/2025 16:40:42 __init__._fixture_func_decorator L0073 ERROR | AttributeError("'AnsibleUnsafeText' object has no attribute 'get'") Traceback (most recent call last): File "/data/tests/common/plugins/log_section_start/__init__.py", line 71, in _fixture_func_decorator return fixture_func(*args, **kargs) File "/data/tests/generic_config_updater/test_dynamic_acl.py", line 227, in setup if config_facts['VLAN_INTERFACE'][vlan_name][vlan_ip_address].get("secondary"): AttributeError: 'AnsibleUnsafeText' object has no attribute 'get' It's because the VLAN_INTERFACE is like this on dualtor: "VLAN_INTERFACE": { "Vlan1000": { "grat_arp": "enabled", "proxy_arp": "enabled", "192.168.0.1/21": { }, "fc02:1000::1/64": { } } }, Approach What is the motivation for this PR? How did you do it? Avoid to get secondary key from a string object Signed-off-by: Zhaohui Sun <[email protected]>
mssonicbld
pushed a commit
that referenced
this pull request
Mar 3, 2025
* Fix test_dynamic_acl uncompatible issue on dualtor Signed-off-by: Zhaohui Sun <[email protected]> Description of PR Summary: Fixes # (issue) test_dynamic_acl failed on dualtor testbed due to: 28/02/2025 16:40:42 __init__._fixture_func_decorator L0073 ERROR | AttributeError("'AnsibleUnsafeText' object has no attribute 'get'") Traceback (most recent call last): File "/data/tests/common/plugins/log_section_start/__init__.py", line 71, in _fixture_func_decorator return fixture_func(*args, **kargs) File "/data/tests/generic_config_updater/test_dynamic_acl.py", line 227, in setup if config_facts['VLAN_INTERFACE'][vlan_name][vlan_ip_address].get("secondary"): AttributeError: 'AnsibleUnsafeText' object has no attribute 'get' It's because the VLAN_INTERFACE is like this on dualtor: "VLAN_INTERFACE": { "Vlan1000": { "grat_arp": "enabled", "proxy_arp": "enabled", "192.168.0.1/21": { }, "fc02:1000::1/64": { } } }, Approach What is the motivation for this PR? How did you do it? Avoid to get secondary key from a string object Signed-off-by: Zhaohui Sun <[email protected]>
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.
Description of PR
Summary:
Fixes # (issue)
test_dynamic_acl failed on dualtor testbed due to:
It's because the VLAN_INTERFACE is like this on dualtor:
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
Avoid to get
secondary
key from a string objectHow did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation