diff options
author | permitanyany <antoxa@gmail.com> | 2018-06-22 12:27:34 -0400 |
---|---|---|
committer | Alicia Cozine <cozi@visi.com> | 2018-06-22 11:27:34 -0500 |
commit | 46dbb3e1e8ebd69012ff59be152906cff143d18f (patch) | |
tree | aecbba7f8a226c505d9e1f6700c7a9710746f2e1 /lib/ansible/modules/network/cumulus | |
parent | 9aa8c652ba12573e09810ee86c700f0b7420e830 (diff) | |
download | ansible-46dbb3e1e8ebd69012ff59be152906cff143d18f.tar.gz |
Show BGP Status In JSON (#41844)
Diffstat (limited to 'lib/ansible/modules/network/cumulus')
-rw-r--r-- | lib/ansible/modules/network/cumulus/nclu.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index b364fdb23d..b8ffd64b47 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -97,6 +97,14 @@ EXAMPLES = ''' - add bgp neighbor swp52 interface remote-as external commit: true +- name: Check BGP Status + nclu: + commands: + - show bgp summary json + register: output +- name: Print BGP Status In JSON + debug: + var: output["msg"] ''' RETURN = ''' |