xapi-project / xcp-networkd

The XCP networking daemon
Other
14 stars 42 forks source link

CA-291495: Fall back to Ip.link_set_mtu if OVS.set_mtu fails #141

Closed robhoes closed 6 years ago

robhoes commented 6 years ago

OVS.set_mtu is a new function (since ed2151f8), which requires a newer version of the OVS that supports the mtu_request feature. If the installed OVS does not have this feature, then the function will raise an exception. For compatibility reasons, we now catch this exception and fall back to Ip.link_set_mtu.

Signed-off-by: Rob Hoes rob.hoes@citrix.com