summaryrefslogtreecommitdiff
path: root/cloudinit/net/bsd.py
diff options
context:
space:
mode:
authorGonéri Le Bouder <goneri@lebouder.net>2021-05-14 15:58:47 -0400
committerGitHub <noreply@github.com>2021-05-14 14:58:47 -0500
commit6fe1983777663a1a1136fd73dc50244f2d030be8 (patch)
treefa70e1a8575daf9b1e55285d6106d9bb4050c865 /cloudinit/net/bsd.py
parent4c3c36297ad199ee9325a48f7e56a9c099ec183f (diff)
downloadvyos-cloud-init-6fe1983777663a1a1136fd73dc50244f2d030be8.tar.gz
vyos-cloud-init-6fe1983777663a1a1136fd73dc50244f2d030be8.zip
BSD: static network, set the mtu (#894)
In the case of a static network, we now set the MTU according to the meta-data.
Diffstat (limited to 'cloudinit/net/bsd.py')
-rw-r--r--cloudinit/net/bsd.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/net/bsd.py b/cloudinit/net/bsd.py
index e34e0454..aab968a8 100644
--- a/cloudinit/net/bsd.py
+++ b/cloudinit/net/bsd.py
@@ -76,6 +76,7 @@ class BSDRenderer(renderer.Renderer):
self.interface_configurations[device_name] = {
'address': subnet.get('address'),
'netmask': subnet.get('netmask'),
+ 'mtu': subnet.get('mtu'),
}
def _route_entries(self, settings, target=None):