From 46dbb3e1e8ebd69012ff59be152906cff143d18f Mon Sep 17 00:00:00 2001 From: permitanyany Date: Fri, 22 Jun 2018 12:27:34 -0400 Subject: [PATCH] Show BGP Status In JSON (#41844) --- lib/ansible/modules/network/cumulus/nclu.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 = '''