Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ce_evpn_bgp_rr: update to fix a bug #58228

Merged
merged 1 commit into from
Jun 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/ansible/modules/network/cloudengine/ce_evpn_bgp_rr.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ def get_config_in_bgp_view(self):

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

Expand Down Expand Up @@ -354,6 +358,8 @@ def get_end_state(self):
'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"""
Expand Down