mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
force_add_slave was designed to be called right after the link_set_master call to override our internal cache and not wait for the kernel and register the slave/master relationship in our internal data-structures. It turns out the kernel can be faster than us here. So an additional check is needed to make sure we don't do duplicate operations that would result in the slave being removed from an internal data-structure. Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>