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"""