mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-17 10:31:19 +02:00
chore(networkd): Ignore bonded interfaces without config
This change sets bonded devices to ignored if there is no user supplied configuration. Without configuration, a bonded interfaces doesnt provide any value. This should speed up initial boot times by preventing address discovery on this interface. Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
This commit is contained in:
parent
c9a91b7d9d
commit
a6ab1ec2a5
@ -86,6 +86,13 @@ func New(config runtime.Configurator) (*Networkd, error) {
|
||||
for _, device := range filterInterfaceByName(localInterfaces) {
|
||||
if _, ok := netconf[device.Name]; !ok {
|
||||
netconf[device.Name] = []nic.Option{nic.WithName(device.Name)}
|
||||
|
||||
// Explicitly ignore bonded interfaces if no configuration was specified
|
||||
// This should speed up initial boot times since an unconfigured bond
|
||||
// does not provide any value.
|
||||
if strings.HasPrefix(device.Name, "bond") {
|
||||
netconf[device.Name] = append(netconf[device.Name], nic.WithIgnore())
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure lo has proper loopback address
|
||||
|
Loading…
x
Reference in New Issue
Block a user