Skip to content

Commit

Permalink
configure OVS internal port after dummy interface
Browse files Browse the repository at this point in the history
(cherry picked from commit e2973c4)
  • Loading branch information
zhangzujian authored and oilbeater committed Jun 21, 2021
1 parent 9b70842 commit dcdf75a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/daemon/ovs.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,15 @@ func configureContainerNic(nicName, ifName string, ipAddr, gateway string, macAd
}

if nicType == util.InternalType {
if err = configureNic(nicName, ipAddr, macAddr, mtu); err != nil {
return err
}
if err = addAdditonalNic(ifName); err != nil {
return err
}
if err = configureAdditonalNic(ifName, ipAddr); err != nil {
return err
}
if err = configureNic(nicName, ipAddr, macAddr, mtu); err != nil {
return err
}
} else {
if err = configureNic(ifName, ipAddr, macAddr, mtu); err != nil {
return err
Expand Down

0 comments on commit dcdf75a

Please sign in to comment.