Commit 81e95439 authored by Mark Schouten's avatar Mark Schouten
Browse files

mtu is kinda borken too

parent e49019e2
......@@ -262,8 +262,12 @@ def Ifmtu(iface, mtu):
print("Setting MTU of interface %s to %s" % (iface, mtu))
global ip
i = ip.interfaces[iface]
i.mtu = int(mtu)
ip.commit()
i['mtu'] = int(mtu)
# XXX We do not want this. But untill https://github.com/svinota/pyroute2/issues/349 is fixed, we need it.
try:
ip.commit()
except:
pass
def Ifalias(iface, alias):
print("Setting alias of interface %s to %s" % (iface, alias))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment