From 955e4046688ddabee6b37d99846c3657a01c93b1 Mon Sep 17 00:00:00 2001 From: Taoyu Li Date: Tue, 7 Feb 2017 22:22:21 +0000 Subject: [PATCH] Bug fix: let lldp neighbor test use eos snmp_community instead of str one --- ansible/roles/test/tasks/lldp.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/roles/test/tasks/lldp.yml b/ansible/roles/test/tasks/lldp.yml index 65078c9f926..b2a3ab6b4ad 100644 --- a/ansible/roles/test/tasks/lldp.yml +++ b/ansible/roles/test/tasks/lldp.yml @@ -34,6 +34,7 @@ when: item != "eth0" - name: Iterate throguh each lldp neighbor and verify the information received by neighbor are also correct - add_host: name={{ lldp[item]['chassis']['mgmt-ip'] }} groups=lldp_neighbors neighbor_interface={{lldp[item]['port']['ifname']}} dut_interface={{item}} hname={{lldp[item]['chassis']['mgmt-ip'] }} snmp_rocommunity={{ snmp_rocommunity }} + add_host: name={{ lldp[item]['chassis']['mgmt-ip'] }} groups=lldp_neighbors,eos neighbor_interface={{lldp[item]['port']['ifname']}} dut_interface={{item}} hname={{lldp[item]['chassis']['mgmt-ip'] }} with_items: lldp.keys() when: item != "eth0" +