summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/network/cumulus
diff options
context:
space:
mode:
authorpermitanyany <antoxa@gmail.com>2018-06-22 12:27:34 -0400
committerAlicia Cozine <cozi@visi.com>2018-06-22 11:27:34 -0500
commit46dbb3e1e8ebd69012ff59be152906cff143d18f (patch)
treeaecbba7f8a226c505d9e1f6700c7a9710746f2e1 /lib/ansible/modules/network/cumulus
parent9aa8c652ba12573e09810ee86c700f0b7420e830 (diff)
downloadansible-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.py8
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 = '''