RHEL 9 patch posted to upstream: https://github.com/nmstate/nmstate/pull/2047
With patched, by default, we ignore extra IP address found in current if not mentioned in desired.
Example yaml to force strict IP address check:
---
interfaces:
- name: eth1
type: ethernet
state: up
ipv4:
allow-extra-address: false
address:
- ip: 192.0.2.251
prefix-length: 24
dhcp: false
enabled: true
ipv6:
enabled: false
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHBA-2023:2190