Fixes setting MTU on adapters to be disabled
Fixes the issue by setting the MTU before disabling an adapter. Change-Id: I1590074e165fbd5214812b4f247702cd6bb9a972 Closes-Bug: #1800063
This commit is contained in:
parent
dab0634bcf
commit
1fae06860c
@ -174,17 +174,17 @@ class NetworkConfigPlugin(plugin_base.BasePlugin):
|
||||
|
||||
@staticmethod
|
||||
def _process_link_common(osutils, link):
|
||||
LOG.debug(
|
||||
"Enable network adapter \"%(name)s\": %(enabled)s",
|
||||
{"name": link.name, "enabled": link.enabled})
|
||||
osutils.enable_network_adapter(link.name, link.enabled)
|
||||
|
||||
if link.mtu:
|
||||
LOG.debug(
|
||||
"Setting MTU on network adapter \"%(name)s\": %(mtu)s",
|
||||
{"name": link.name, "mtu": link.mtu})
|
||||
osutils.set_network_adapter_mtu(link.name, link.mtu)
|
||||
|
||||
LOG.debug(
|
||||
"Enable network adapter \"%(name)s\": %(enabled)s",
|
||||
{"name": link.name, "enabled": link.enabled})
|
||||
osutils.enable_network_adapter(link.name, link.enabled)
|
||||
|
||||
@staticmethod
|
||||
def _process_physical_links(osutils, network_details):
|
||||
physical_links = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user