Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nm: Fix the incorrect change indication when apply the same config twice
When applying the same network connections twice, the second apply still shows `changed: true`. The root cause: * When user never asked about ethtool configuration, network-role will generate a all-default `NM.SettingEthtool` and pass to NetworkManager daemon. But NetworkManager discard it. * During second apply, the `NM.SimpleConnection.compare` will return False indicating configuration changed because of on-disk connection has no ethtool setting while pending connection does. To fix it, we just remove the all-default `NM.SettingEthtool`. Signed-off-by: Gris Ge <fge@redhat.com>
- Loading branch information