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
This commit is contained in:
parent
8743e6ae2e
commit
d3cc2f803a
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue