Assert that a QinX cannot have higher MTU than its intermediate interface

This commit is contained in:
Pim van Pelt
2022-03-26 17:18:10 +00:00
parent 40c6b2d1c8
commit 7bb9fa5ac8
3 changed files with 19 additions and 5 deletions

View File

@ -824,9 +824,9 @@ class Reconciler():
config_mtu = config_iface['mtu']
if shrink and config_mtu < vpp_iface.mtu[0]:
self.logger.info("shrink 1> set interface mtu packet %d %s" % (config_mtu, vpp_iface.interface_name))
self.logger.info("1> set interface mtu packet %d %s" % (config_mtu, vpp_iface.interface_name))
elif not shrink and config_mtu > vpp_iface.mtu[0]:
self.logger.info("grow 2> set interface mtu packet %d %s" % (config_mtu, vpp_iface.interface_name))
self.logger.info("2> set interface mtu packet %d %s" % (config_mtu, vpp_iface.interface_name))
return True