ipv4/6 auto-suggested address should be removed when the different domain and subnet with ipv6/4 are selected
Description of problem:
In host form -> inteface
Auto-suggested address stays in formular after the different version of domain and subnet is chose. (By different version is meant ipv4 subnet changed to ipv6 subnet and ipv6 subnet changed to ipv4, these subnets have each their own domains)
Version-Release number of selected component (if applicable):
sat 6.8 snap 10
Steps to Reproduce:
1. Create domain and associate the domain with ipv4 subnet. Do the same for ipv6. During Ipv4 subnet creation set IPAM field set to Random DB and and during ipv6 subnet creation set IPAM to EUI-64.
2. Create host -> navigate directly into interfaces -> edit interface
3. Fill in mac address,
4. Then for example select that domain with ipv4 subnet and select that ipv4 subnet and auto-suggested ip address is shown
5. After that swap domain which is associated to ipv6 subnet to this ipv6 subnet. The ipv-6 address is auto-suggested by ipv4 address is still shown.
Point 4 and 5 can be applied firstly on ipv6 and then to ipv4 with the same result. The first auto-suggested ip address is not removed.
The first auto-suggested ip address is not removed.
The first auto-suggested ip address should be removed when the different ip version is chose.