[DNM]fix deleted state for bgp_global #554
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
fixes the issue customer is facing while deleting neighbors in bgp_global, when the customer provides just one neighbor (e.g., 192.168.253.4), the module deletes all neighbors not present in want, even though the user intends to delete just that one.
The proposed changes in this PR, only delete explicitly defined neighbors in the want dictionary and do not infer deletion of other neighbors.
Fixes ANA-733
ISSUE TYPE
COMPONENT NAME
iosxr_bgp_global
ADDITIONAL INFORMATION
Problem user facing when using state deleted:
user configuration on device:
Expected outcome (Now the output is this after the changes done in PR):
Actual outcome (before the changes made in PR):