Skip to content

Add suse network config support#452

Open
mihaelabalutoiu wants to merge 2 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-suse-network-config-support
Open

Add suse network config support#452
mihaelabalutoiu wants to merge 2 commits into
cloudbase:masterfrom
mihaelabalutoiu:add-suse-network-config-support

Conversation

@mihaelabalutoiu

Copy link
Copy Markdown
Member

No description provided.

@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch 2 times, most recently from 9afb3e3 to 918f222 Compare June 30, 2026 06:11
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py Outdated
Comment thread coriolis/osmorphing/suse.py
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu mihaelabalutoiu force-pushed the add-suse-network-config-support branch from 918f222 to 6d19fac Compare July 2, 2026 14:34

def _get_ifcfg_nm_controlled(self):
if self._version_supported_util(self._version, minimum=15):
return "yes"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check on suse machines 12 and 15? Does only 15 need nm_controlled to be enabled?

return "yes"
return "no"

def _backup_nmconnection_files(self, backup_file_suffix=".bak"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The redhat._backup_nm_connection_files should be refactored into base and re-used instead of overriding. As a matter of fact, any method that can be re-used from redhat should be refactored into base and used here. There's no need to override everything here, unless there's something that really is different.

IMO the only methods added in this PR that need to be implemented here are disable_predictable_nic_names, and set_net_config. The rest should come from base.

"GRUB_CMDLINE_LINUX",
{"opt_type": "key_val", "opt_key": "biosdevname", "opt_val": 0})
self._write_file_sudo("etc/default/grub", cfg.dump())
self._execute_update_grub()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace this with self._schedule_grub2_update().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants