Fixes #5703: populate vrf and tenant fields when adding ip address #5896
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.
Fixes: #5703
With this commit behavior of the "+ add new ip address" button and clicking the ".. IPs available" button is now the same (you get to the add IP page where VRF and tenant fields are populated already if the prefix was assigned a VRF or Tenant).
The ".. IPs available" rows of the table overview of IP addresses for a prefix is also fixed (it now displays the VRF of the prefix if it has one instead of incorrectly displaying "Global" and it displays the tenant if the prefix was assigned one).