update ce_acl to fix bugs (#60357)

* update ce_acl to fix bugs (#60274)

(cherry picked from commit 66c3e9bb9b)

* Update ce_acl modified information
This commit is contained in:
yanzhangi 2019-08-13 09:23:52 +08:00 committed by Toshio Kuratomi
parent 34d3a80fb5
commit d350269da1
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ce_acl - update to fix some bugs - When the frag_type parameter is in the module and the configuration is repeatedly sent to the device, the module displays change = True. (https://github.com/ansible/ansible/pull/60274)

View file

@ -650,7 +650,8 @@ class BaseAcl(object):
find_flag = False
if self.src_wild and tmp.get("aclSrcWild") != self.src_wild:
find_flag = False
if self.frag_type and tmp.get("aclFragType") != self.frag_type:
frag_type = "clear_fragment" if tmp.get("aclFragType") is None else tmp.get("aclFragType")
if self.frag_type and frag_type != self.frag_type:
find_flag = False
if self.vrf_name and tmp.get("vrfName") != self.vrf_name:
find_flag = False