Remove overriding host verson when IP already exist. #781
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.
Remove overriding host verson when IP already exist to avoid programming IPs become available after CNS restarts and restore from previous state.
fix: repair a bug when CNS restarts.
Reason for Change:
When nmagent nc version api is not ready, host version should always be -1 which indicate CNS can't verify nc version from nmagent side.
No IP can be assigned since nmagent is not ready.
However, found CNS will assign IPs when restarts and restore from preivous states when nmagent is not ready. It's due to host version override.
Issue Fixed:
Removing unnecessary override of host verson.
fix: Bug Fixes 🐞
Notes:
Related logs