Skip to content
  • Thomas Haller's avatar
    libnm: fix normalizing and verifying OVS connections · 4199c976
    Thomas Haller authored and Lubomir Rintel's avatar Lubomir Rintel committed
    Normalizing can be complicated, as settings depend on each other and possibly
    conflict.
    
    That is, because verify() must exactly anticipate whether normalization will
    succeed and how the result will look like. That is because we only want to
    modify the connection, if we are sure that the result will verify.
    
    Hence, verify() and normalize() are strongly related. The implementation
    should not be spread out between NMSettingOvsInterface:verify(),
    NMSettingOvsPatch:verify() and _normalize_ovs_interface_type().
    
    Also, add some unit-tests.
    4199c976