From e0d044618322d7599f5bfdaddb94c7f9c798e489 Mon Sep 17 00:00:00 2001 From: Antony Messerli Date: Thu, 17 Aug 2017 14:38:30 -0500 Subject: [PATCH] Updates lldp module example to use ifname instead of ifalias (#23064) --- lib/ansible/modules/net_tools/lldp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/net_tools/lldp.py b/lib/ansible/modules/net_tools/lldp.py index 3b171c4b9f..cdfbb1ffa8 100644 --- a/lib/ansible/modules/net_tools/lldp.py +++ b/lib/ansible/modules/net_tools/lldp.py @@ -33,7 +33,7 @@ EXAMPLES = ''' - name: Print each switch/port debug: - msg: "{{ lldp[item]['chassis']['name'] }} / {{ lldp[item]['port']['ifalias'] }}" + msg: "{{ lldp[item]['chassis']['name'] }} / {{ lldp[item]['port']['ifname'] }}" with_items: "{{ lldp.keys() }}" # TASK: [Print each switch/port] ***********************************************************