[Backport/2.9/61684]Update ce_ospf to fix bugs (#62597)

* Update ce_ospf to fix bugs

(cherry picked from commit 1583c5ead2)

* Update ce_ospf modified information
pull/62607/head
yanzhangi 5 years ago committed by Toshio Kuratomi
parent 3d5367243b
commit 227efbc7ae

@ -0,0 +1,2 @@
bugfixes:
- ce_ospf - update to fix some bugs - Contrast before and after adding configuration. (https://github.com/ansible/ansible/pull/61684)

@ -514,9 +514,6 @@ class OSPF(object):
for network in area.get("networks"): for network in area.get("networks"):
if network["ipAddress"] == self.addr and network["wildcardMask"] == self.get_wildcard_mask(): if network["ipAddress"] == self.addr and network["wildcardMask"] == self.get_wildcard_mask():
return True return True
else:
break
return False return False
def is_nexthop_exist(self): def is_nexthop_exist(self):
@ -890,7 +887,8 @@ class OSPF(object):
self.end_state["max_load_balance"] = ospf_info.get("maxLoadBalancing") self.end_state["max_load_balance"] = ospf_info.get("maxLoadBalancing")
if self.end_state == self.existing: if self.end_state == self.existing:
self.changed = False if not self.auth_text_simple and not self.auth_text_md5:
self.changed = False
def work(self): def work(self):
"""worker""" """worker"""

Loading…
Cancel
Save