Skip to content
  • Thomas Haller's avatar
    libnm: relax comparison of bond-option for INFERRABLE match · 0fb723e7
    Thomas Haller authored
    When comparing the bond-settings of an activated device against
    the settings from the connection, some properties might easily
    differ. Hack them around in NMSettingBond:compare_property().
    
    For example:
    
    the setting in the connection has:
        [bond]
        mode=active-backup
    
    later, the device gets:
        [bond]
        active_slave=inf_ib0
        fail_over_mac=active
        mode=active-backup
    
    Note that the fail_over_mac changes due to:
      kernel: nm-bond: enslaved VLAN challenged slave inf_ib0. Adding VLANs will be blocked as long as inf_ib0 is part of bond nm-bond
      kernel: nm-bond: The slave device specified does not support setting the MAC address
      kernel: nm-bond: Setting fail_over_mac to active for active-backup mode
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1375558
    0fb723e7