From d3cc2f803a3e66396b8a686b49607c1a470811dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20R=20Cordones?= Date: Wed, 10 Oct 2018 16:47:11 -0400 Subject: [PATCH] Update eos_config.py (#45810) Switches will accept the previously used syntax for /32 ACL entries, but they get changed to host ipaddress in the config file. This results in the config check failing every time (permit ip 1.1.1.1/32 any log != permit ip host 1.1.1.1 any log), resulting in the ACL getting re-created on every single run of the Playbook. Making this proposed change to the example will make it work in an idempotent manner. +label: docsite_pr --- lib/ansible/modules/network/eos/eos_config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/network/eos/eos_config.py b/lib/ansible/modules/network/eos/eos_config.py index b84c749197c..064a41952ea 100644 --- a/lib/ansible/modules/network/eos/eos_config.py +++ b/lib/ansible/modules/network/eos/eos_config.py @@ -216,10 +216,10 @@ EXAMPLES = """ - name: load an acl into the device eos_config: lines: - - 10 permit ip 192.0.2.1/32 any log - - 20 permit ip 192.0.2.2/32 any log - - 30 permit ip 192.0.2.3/32 any log - - 40 permit ip 192.0.2.4/32 any log + - 10 permit ip host 192.0.2.1 any log + - 20 permit ip host 192.0.2.2 any log + - 30 permit ip host 192.0.2.3 any log + - 40 permit ip host 192.0.2.4 any log parents: ip access-list test before: no ip access-list test replace: block