Skip to content

Commit

Permalink
fix UT in pkg/util/ipvs
Browse files Browse the repository at this point in the history
  • Loading branch information
fisherxu authored and dhilipkumars committed May 31, 2017
1 parent ee630c4 commit d7cf558
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pkg/util/ipvs/ipvs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,6 @@ func (runner *runner) InitIpvsInterface() error {
return nil
}

func (runner *runner) setSystemFlagInt(sysControl string, value int) error {
if val, err := runner.sysctl.GetSysctl(sysControl); err == nil && val != value {
runner.sysctl.SetSysctl(sysControl, value)
} else if err != nil {
glog.Errorf("Error: System control flag [%s] cannot be set", sysControl)
return err
}
return nil
}

func (runner *runner) CheckAliasDevice(aliasDev string) error {
_, err := net.InterfaceByName(aliasDev)
if err == nil {
Expand Down

0 comments on commit d7cf558

Please sign in to comment.