Add logger message when setting MTU

This commit is contained in:
Joshua Boniface 2021-10-09 18:56:18 -04:00
parent e9d05aa24e
commit 46d3daf686
1 changed files with 5 additions and 0 deletions

View File

@ -490,6 +490,11 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
return self.vni return self.vni
def updateNetworkMTU(self): def updateNetworkMTU(self):
self.logger.out(
'Setting network MTU to {}'.format(self.vx_mtu),
prefix='VNI {}'.format(self.vni),
state='i'
)
# Set MTU of base and bridge NICs # Set MTU of base and bridge NICs
common.run_os_command( common.run_os_command(
'ip link set {} mtu {} up'.format( 'ip link set {} mtu {} up'.format(