mirror of
https://github.com/siderolabs/talos.git
synced 2025-09-14 18:31:10 +02:00
Instead of patching in the machine config, provide a new interface in the platforms to supply platform-specific network configuration. Configuration will be cached in the `/state` across reboots, and configuration might be even updated in real time (e.g. on GCP). Network configuration on platform level can be overridden with user-supplied machine configuration. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
18 lines
489 B
Go
18 lines
489 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package network
|
|
|
|
//go:generate enumer -type=Operator -linecomment -text
|
|
|
|
// Operator enumerates Talos network operators.
|
|
type Operator int
|
|
|
|
// Operator list.
|
|
const (
|
|
OperatorDHCP4 Operator = iota // dhcp4
|
|
OperatorDHCP6 // dhcp6
|
|
OperatorVIP // vip
|
|
)
|