From 23139cdbb9eedada9e6e993902c2d65d4a7072ef Mon Sep 17 00:00:00 2001 From: YuandongXu <786018072@qq.com> Date: Sat, 29 Jun 2019 05:10:49 +0800 Subject: [PATCH] update to fix a bug (#58228) --- lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py b/lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py index afd5bc0d389..95f30d10b52 100644 --- a/lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py +++ b/lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py @@ -270,6 +270,10 @@ class EvpnBgpRr(object): flags.append(exp) config = get_config(self.module, flags) + cmd = 'display current-configuration ' + exp + config = config.strip() if config else "" + if cmd == config: + return '' return config @@ -354,6 +358,8 @@ class EvpnBgpRr(object): 'bgp_evpn_enable'], reflect_client=self.cur_config['reflect_client'], policy_vpn_target=self.cur_config['policy_vpn_target']) + if self.end_state == self.existing: + self.changed = False def show_result(self): """Show result"""