integ/config/puppet-modules/puppet-network/debian/deb_folder/patches/0007-Prevent-MTU-value-from...

39 lines
1.5 KiB
Diff

From be164ba7c835ff932674a73bd7adde90d5601c9b Mon Sep 17 00:00:00 2001
From: Mohammad Issa <mohammad.issa@windriver.com>
Date: Mon, 16 Jan 2023 21:20:21 +0000
Subject: [PATCH] Prevent MTU value from duplicating
A system oam-modify command will apply the OAM addressing
changes at runtime. When running the oam-modify on a Debian system,
the OAM interface obtains the updated addressing,
but the state is 'DOWN' after the runtime manifest is complete.
This results in a duplicate MTU value being generated by
the network_config puppet module inside each interface's config.
This prevents ifup/ifdown of the interface.
This change ensures there is no duplicating MTU value.
Signed-off-by: Mohammad Issa <mohammad.issa@windriver.com>
---
lib/puppet/provider/network_config/interfaces.rb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/puppet/provider/network_config/interfaces.rb b/lib/puppet/provider/network_config/interfaces.rb
index 487b243..94b7445 100644
--- a/lib/puppet/provider/network_config/interfaces.rb
+++ b/lib/puppet/provider/network_config/interfaces.rb
@@ -317,8 +317,7 @@ Puppet::Type.type(:network_config).provide(:interfaces) do
[
[:ipaddress, 'address'],
- [:netmask, 'netmask'],
- [:mtu, 'mtu']
+ [:netmask, 'netmask']
].each do |(property, section)|
stanza << "#{section} #{provider.send property}" if provider.send(property) && provider.send(property) != :absent
end
--
2.30.2