]> git.proxmox.com Git - mirror_ifupdown2.git/blobdiff - ifupdown2/addons/address.py
sonarlink: use opposite operator != instead of 'not'
[mirror_ifupdown2.git] / ifupdown2 / addons / address.py
index 54704bde2a055adee6e68bcba71780a0586abbcd..ac88a5e37a7643d6283f1fe8ec6d249bebe3f7cb 100644 (file)
@@ -848,7 +848,7 @@ class address(AddonWithIpBlackList, moduleBase):
                     self.sysfs.link_set_mtu(ifaceobj.name, mtu_str=str(lower_iface_mtu_int), mtu_int=lower_iface_mtu_int)
 
         elif (
-            not (ifaceobj.name == 'lo')
+            ifaceobj.name != 'lo'
             and not ifaceobj.link_kind
             and not (ifaceobj.link_privflags & ifaceLinkPrivFlags.BOND_SLAVE)
             and self.default_mtu