1
0
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:
Josh Curl
2016-04-08 13:04:35 -07:00
parent 07faa92c7f
commit 173874f196
6 changed files with 110 additions and 11 deletions

View File

@@ -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