]> git.proxmox.com Git - mirror_ifupdown2.git/commit
iproute2: link_set_address: dont check the cache on link up
authorJulien Fortin <julien@cumulusnetworks.com>
Tue, 2 Mar 2021 12:20:06 +0000 (13:20 +0100)
committerJulien Fortin <jfortin@nvidia.com>
Wed, 30 Jun 2021 21:59:03 +0000 (23:59 +0200)
commit0cb747dd9e30787a773198b515a340c17b2aebf8
tree69d554dd1ade97b0c934f5ae39616b28889db00d
parent66eb9ce3c5ab4806817281aa7371ace68ed48a3e
iproute2: link_set_address: dont check the cache on link up

To change the mac address of the device we need to set it down,
then make the change, then bring it back up. Thus we don't need
to check the cache before bringing the device back up.

Also adding a TODO: link_up/down should check if we are running
in a batch context, if so the cache shouldn't be checked to avoid
situation like this.

Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifupdown2/lib/iproute2.py