[ansible-plugin] back port stdout callback plugin 'yaml' from ansible2.5#1005
Merged
yxieca merged 1 commit intosonic-net:masterfrom Jul 18, 2019
dawnbeauty:yaml-cb
Merged
[ansible-plugin] back port stdout callback plugin 'yaml' from ansible2.5#1005yxieca merged 1 commit intosonic-net:masterfrom dawnbeauty:yaml-cb
yxieca merged 1 commit intosonic-net:masterfrom
dawnbeauty:yaml-cb
Conversation
* Adding the abblity to use yaml plugin with stdout content Signed-off-by: Zhiqian Wu <[email protected]>
1 task
lguohan
approved these changes
Jul 18, 2019
yxieca
approved these changes
Jul 18, 2019
yxieca
pushed a commit
that referenced
this pull request
Jul 19, 2019
…2.5 (#1005) * Adding the abblity to use yaml plugin with stdout content Signed-off-by: Zhiqian Wu <[email protected]>
lguohan
pushed a commit
that referenced
this pull request
Jul 28, 2019
[pytest] adding ability to use stdout callback plugin when running ansible module [pytest ansible_host] Support 'module_ignore_errors' option Signed-off-by: Zhiqian Wu [email protected] Description of PR Summary: - stdout callback With stdout callback plugin, we could get pretty-printed output of ansible module results. It is simple and convenient to read the outputs or print dict/list objects. So i add a function dump_ansible_results to do that. 'yaml' is the default stdout callback plugin, back port from ansible 2.5 in PR #1005 , you may choose another plugin whenever calling dump_ansible_results. - module_ignore_errors We need to ignore errors when execute some cmds with non-zero return codes. Signed-off-by: Zhiqian Wu <[email protected]>
sdszhang
pushed a commit
to sdszhang/sonic-mgmt
that referenced
this pull request
Mar 23, 2026
…#1005) <!-- Please make sure you've read and understood our contributing guidelines; https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md Please provide following information to help code review process a bit easier: --> ### Description of PR <!-- - Please include a summary of the change and which issue is fixed. - Please also include relevant motivation and context. Where should reviewer start? background context? - List any dependencies that are required for this change. --> Summary: Update packet verification and port handling to support portchannels with multiple ethernet interfaces on T0 VMs in t1-f2-d10u8 topology Manually cherry-picked from sonic-net#22116 Fixes # (issue) ### Type of change <!-- - Fill x for your type of change. - e.g. - [x] Bug fix --> - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [ ] New Test case - [ ] Skipped for non-supported platforms - [x] Test case improvement ### Back port request - [x] 202503 - [x] 202511 ### Approach #### What is the motivation for this PR? test_bgp_suppress_fib.py failed on t1-f2-d10u8 topo #### How did you do it? Update packet verification and port handling to support portchannels with multiple ethernet interfaces #### How did you verify/test it? test_bgp_suppress_fib.py passed on t1-f2-d10u8 topo #### Any platform specific information? #### Supported testbed topology if it's a new test case? ### Documentation <!-- (If it's a new feature, new test case) Did you update documentation/Wiki relevant to your implementation? Link to the wiki page? -->
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.
Description of PR
With this plugin
yaml, we could get pretty-printed stdout of ansible-playbook.And don't need to put
debugeverywhere.Summary:
Signed-off-by: Zhiqian Wu [email protected]
Type of change
Approach
How did you do it?
ansible.cfgHow to use ?
exec
ansible-playbookwithANSIBLE_STDOUT_CALLBACKor set default stdout callback toyamlthroughansible.cfgE.g.
How did you verify/test it?
assume that we have a playbook include below tasks:
without yaml plugin, the stdout is like:
with yaml plugin, the stdout is like: