Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions misc/kickstart_create_network_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
network links in /sys/class/net/*, then emits a ks.cfg network line.
'''

from __future__ import print_function
import os
import re

from __future__ import print_function

global TO_LOG
# This "logs" to stdout which is captured during kickstart
Expand Down Expand Up @@ -170,8 +170,7 @@ def useable_interfaces(net_devs, nc, iface_speed):
# if not it is anyway.
# Thus we are doing a bond of some sort.
# This gives us the fastest interfaces first:
speeds = net_devs.keys()
speeds.sort(reverse=True)
speeds = [k for k in sorted(net_devs.keys(), reverse=True)]
Comment thread
ocket8888 marked this conversation as resolved.
fastest = speeds[0]
# Walk through "speeds" and take the first one that has more than one
# interface. This will only set iface_list if there are 2 or more interfaces:
Expand Down