mirror of
https://github.com/rancher/os.git
synced 2025-09-01 23:04:41 +00:00
Apply network configurations again after cloud-init
This commit is contained in:
4
vendor/github.com/rancher/netconf/netconf_linux.go
generated
vendored
4
vendor/github.com/rancher/netconf/netconf_linux.go
generated
vendored
@@ -273,6 +273,10 @@ func setGateway(gateway string) error {
|
||||
|
||||
func applyInterfaceConfig(link netlink.Link, netConf InterfaceConfig) error {
|
||||
if netConf.Bond != "" {
|
||||
if err := netlink.LinkSetDown(link); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
b, err := Bond(netConf.Bond)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user