diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2020-07-14 13:31:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-14 13:31:13 -0400 |
commit | 25289087e44c9c74543248519e37ca1f11b8a711 (patch) | |
tree | 3714a6fb41e6a811bfa78978f507ab4412aca302 /cloudinit/stages.py | |
parent | b3bd56248a2ef095c89f69d413ce3487ad041e43 (diff) | |
download | vyos-cloud-init-25289087e44c9c74543248519e37ca1f11b8a711.tar.gz vyos-cloud-init-25289087e44c9c74543248519e37ca1f11b8a711.zip |
networking: refactor wait_for_physdevs from cloudinit.net (#466)
* Refactor `cloudinit.net.wait_for_physdevs` to `cloudinit.distros.networking.Networking.wait_for_physdevs`
* Split the Linux-specific `udevadm_settle` call out to a separate abstract `Networking.settle` method; implement it on `LinuxNetworking` and add a `NotImplementedError` implementation to `BSDNetworking`
* Modify `wait_for_physdevs`s one callsite to use the new location
LP: #1884626
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r-- | cloudinit/stages.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py index db8ba64c..69e6b7e1 100644 --- a/cloudinit/stages.py +++ b/cloudinit/stages.py @@ -696,7 +696,7 @@ class Init(object): netcfg, src = self._find_networking_config() # ensure all physical devices in config are present - net.wait_for_physdevs(netcfg) + self.distro.networking.wait_for_physdevs(netcfg) # apply renames from config self._apply_netcfg_names(netcfg) |