Skip to content

Commit

Permalink
Do not create default wired connections for bond ports
Browse files Browse the repository at this point in the history
Resolves: RHEL-38451
  • Loading branch information
rvykydal committed Jun 20, 2024
1 parent 23cc97d commit 556348e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pyanaconda/modules/network/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,19 @@ def _run(self, nm_client):
# We have to dump persistent ifcfg files for ports created in initramfs
# Filter out potenital connection created for BOOTIF option rhbz#2175664
port_cons = [c for c in available_cons if not is_bootif_connection(c)]
if len(port_cons) == 1 and initramfs_cons:
log.debug("%s: device %s has an initramfs port connection",
self.name, iface)
dumped_con = self._select_persistent_connection_for_device(
device, port_cons, allow_ports=True)
if initramfs_cons:
if len(port_cons) == 1:
log.debug("%s: port device %s has an initramfs port connection",
self.name, iface)
dumped_con = self._select_persistent_connection_for_device(
device, port_cons, allow_ports=True)
else:
log.debug("%s: port device %s has an initramfs connection",
self.name, iface)
else:
log.debug("%s: creating default connection for port device %s",
log.debug("%s: not creating default connection for port device %s",
self.name, iface)
continue

if not dumped_con:
dumped_con = self._select_persistent_connection_for_device(device, available_cons)
Expand Down

0 comments on commit 556348e

Please sign in to comment.