summaryrefslogtreecommitdiff
path: root/cloudinit/net
diff options
context:
space:
mode:
authorAlberto Contreras <alberto.contreras@canonical.com>2022-06-08 20:16:34 +0200
committerGitHub <noreply@github.com>2022-06-08 13:16:34 -0500
commit6270b500535423d6a58c487c4a1e51d1c3dae5ac (patch)
tree26c42bfc01da6c75dd4d969f2f4725f070f03d80 /cloudinit/net
parenta703ee886feaf0aa8971052a3b4b308d8eae8bb2 (diff)
downloadcloud-init-git-6270b500535423d6a58c487c4a1e51d1c3dae5ac.tar.gz
Oracle ds changes (#1474)
For primary network config: - Use `iSCSI` config if some `/run/net*` file exists, even if `/run/initramfs/open-iscsi.interface` does not. - If the instance is not an `iSCSI` one, then crawl the network config from `IMDS` instead of falling back to "best guess". - Remove unnecessary conditional use of dhcp.EphemeralDHCPv4 and use it always to crawl `IMDS`. - Migrate tests to pytest. - Extend unit test coverage. - Add some types for mypy. LP: #1967942
Diffstat (limited to 'cloudinit/net')
-rw-r--r--cloudinit/net/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py
index d9fcaf10..7f534e9c 100644
--- a/cloudinit/net/__init__.py
+++ b/cloudinit/net/__init__.py
@@ -250,7 +250,7 @@ def has_netfail_standby_feature(devname):
return features[62] == "1"
-def is_netfail_master(devname, driver=None):
+def is_netfail_master(devname, driver=None) -> bool:
"""A device is a "netfail master" device if:
- The device does NOT have the 'master' sysfs attribute