From d76ae943edfa834d9443703a1434d635d2cc03a6 Mon Sep 17 00:00:00 2001 From: permitanyany Date: Fri, 8 Jun 2018 11:00:59 -0400 Subject: [PATCH] Added show interface example in JSON format (#40732) * Added show interface example in JSON format Added show interface example in JSON format +label: docsite_pr +label: issue#311 * fixed whitespace --- lib/ansible/modules/network/cumulus/nclu.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index 4a995ca1ab..b364fdb23d 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -73,6 +73,15 @@ EXAMPLES = ''' commit: true description: "Ansible - add swps1-48" +- name: Fetch Details From All Interfaces In JSON Format + nclu: + commands: + - show interface json + register: output +- name: Print Interface Details + debug: + var: output["msg"] + - name: Atomically add an interface nclu: commands: