diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-08-04 15:41:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 15:41:13 +0100 |
commit | c8ba6bc59d981309552c90e845c560ec2bd9b21c (patch) | |
tree | 287c8d5e3f85f43584a9f19782722b2c89cbefbd /python/vyos/ifconfig | |
parent | 241fad230beed8889719e08f0fdb9f08d1404e0f (diff) | |
parent | 67583141f433c31ebccc8eeba06b2b285636e680 (diff) | |
download | vyos-1x-c8ba6bc59d981309552c90e845c560ec2bd9b21c.tar.gz vyos-1x-c8ba6bc59d981309552c90e845c560ec2bd9b21c.zip |
Merge pull request #1453 from sever-sever/T4572-eq
mtu: T4572: Add DHCP-option MTU to get values from DHCP-server
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index 9b08d83de..7dbedea45 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -1375,7 +1375,7 @@ class Interface(Control): # before mangling any IPv6 option. If MTU is less then 1280 IPv6 will be # automatically disabled by the kernel. Also MTU must be increased before # configuring any IPv6 address on the interface. - if 'mtu' in config: + if 'mtu' in config and dict_search('dhcp_options.mtu', config) == None: self.set_mtu(config.get('mtu')) # Only change IPv6 parameters if IPv6 was not explicitly disabled |