From: Pat Riehecky <riehecky(a)fnal.gov>
When altering the network state, it may result in selected
network sources becoming inaccessable due to typos in DNS
or GATEWAY.
With this patch, after the network spoke completes it tells
the software payload to revalidate its state. If the state
becomes invalid, the source spoke errors will guide towards
what is wrong.
---
pyanaconda/ui/gui/spokes/network.py | 6 ++++++
pyanaconda/ui/tui/spokes/network.py | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
index a45b095..4e1da69 100644
--- a/pyanaconda/ui/gui/spokes/network.py
+++ b/pyanaconda/ui/gui/spokes/network.py
@@ -1411,6 +1411,12 @@ def __init__(self, *args, **kwargs):
def apply(self):
_update_network_data(self.data, self.network_control_box)
log.debug("network: apply ksdata %s", self.data.network)
+
+ log.debug("network spoke (apply) refresh payload")
+ from pyanaconda.packaging import payloadMgr
+ payloadMgr.restartThread(self.storage, self.data, self.payload,
+ fallback=not anaconda_flags.automatedInstall)
+
self.network_control_box.kill_nmce(msg="leaving network spoke")
def execute(self):
diff --git a/pyanaconda/ui/tui/spokes/network.py b/pyanaconda/ui/tui/spokes/network.py
index e9b06b4..cfb0b34 100644
--- a/pyanaconda/ui/tui/spokes/network.py
+++ b/pyanaconda/ui/tui/spokes/network.py
@@ -229,6 +229,10 @@ def apply(self):
" Apply all of our settings."""
self._update_network_data()
+ from pyanaconda.packaging import payloadMgr
+ payloadMgr.restartThread(self.storage, self.data, self.payload,
+ checkmount=False)
+
def _update_network_data(self):
hostname = self.data.network.hostname
--
To view this commit on github, visit
https://github.com/rhinstaller/anaconda/commit/acb9cea6a8de4013d75e26fe86...