From 15303b05efea234eb348871244b8094c9c63d939 Mon Sep 17 00:00:00 2001 From: Chris Van Heuveln Date: Tue, 12 Mar 2019 09:49:27 -0400 Subject: [PATCH] nxos_vxlan_vtep: sanity.yaml test needs cast for httpapi tcam check (#53531) This check was working for network_cli (returns value as int) but failing for httpapi (returns value as str). Casting to int fixes the problem. --- .../targets/nxos_vxlan_vtep/tests/common/sanity.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/targets/nxos_vxlan_vtep/tests/common/sanity.yaml b/test/integration/targets/nxos_vxlan_vtep/tests/common/sanity.yaml index 814279a2e0..2be09de27d 100644 --- a/test/integration/targets/nxos_vxlan_vtep/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_vxlan_vtep/tests/common/sanity.yaml @@ -31,7 +31,7 @@ - block: - set_fact: global_suppress_arp="true" - set_fact: def_global_suppress_arp="false" - when: tcam_state.stdout[0] != 0 + when: "tcam_state.stdout[0]|int > 0" when: platform is search('N9K') and (major_version is version('9.2', 'ge'))