Closed lblasc closed 5 months ago
It would probably be best to create two new attributes, ipv4_addresses
and ipv6_addresses
that are lists of all the system IPs. This would maintain backward compatibility yet still expose all the addresses.
I'd be happy to review a PR, but may not get to this myself for a while.
We have a setup where two ipv6 subnets are used on single interface, example:
lxd_container
output will return only one ipv6 address, the public one; the private one won't be returned.Is it acceptable to convert
ip_address
,ipv4_address
andipv6_address
output type to list so that multiple addresses can be returned ? To preserve compatibility this field can stay as is if only one address is detected.