Skip to content

Conversation

@stuntguy3000
Copy link
Contributor

@stuntguy3000 stuntguy3000 commented Feb 15, 2021

Fixes: #5819, #5872

Enables ordering by IPv6, followed by IPv4.
Ensures the displayed IP address is IPv6 or IPv4 based on the configuration.

@jeremystretch
Copy link
Member

This does not respect the PREFER_IPV4 configuration parameter.

@stuntguy3000
Copy link
Contributor Author

stuntguy3000 commented Feb 23, 2021

This does not respect the PREFER_IPV4 configuration parameter.

That's fine, I can look into it, but can you confirm if your fix for the other issue (https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/tables/devices.py#L132) is also incorrect and does not respect this configuration value?

@jeremystretch
Copy link
Member

@stuntguy3000 yes, that needs to be fixed as well.

@stuntguy3000 stuntguy3000 changed the title Fix #5819 - Allow VMs to be sorted by Primary IP Allow VMs to be sorted by Primary IP Feb 25, 2021
@stuntguy3000 stuntguy3000 changed the title Allow VMs to be sorted by Primary IP Fix Primary IP Sorting Issues for Devices and VMs Feb 25, 2021
@stuntguy3000 stuntguy3000 changed the title Fix Primary IP Sorting Issues for Devices and VMs Fix Primary IP Sorting/Display Issues for Devices and VMs Feb 25, 2021
@stuntguy3000 stuntguy3000 changed the title Fix Primary IP Sorting/Display Issues for Devices and VMs Fix Primary IP Sorting Issues for Devices and VMs Feb 25, 2021
@stuntguy3000
Copy link
Contributor Author

stuntguy3000 commented Feb 25, 2021

Okay ignore all that, both issues merged, tested and fixed @jeremystretch.

@jeremystretch jeremystretch merged commit a87f34e into netbox-community:develop Mar 1, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to sort VMs by primary_ip

2 participants