mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-02 06:47:34 +00:00
Revert "Use netlink.SetPromiscOn instead of iproute2 command"
This commit is contained in:
committed by
GitHub
parent
364d696fd5
commit
0459574450
4
vendor/github.com/vishvananda/netlink/addr.go
generated
vendored
4
vendor/github.com/vishvananda/netlink/addr.go
generated
vendored
@@ -11,13 +11,11 @@ import (
|
||||
type Addr struct {
|
||||
*net.IPNet
|
||||
Label string
|
||||
Flags int
|
||||
Scope int
|
||||
}
|
||||
|
||||
// String returns $ip/$netmask $label
|
||||
func (a Addr) String() string {
|
||||
return strings.TrimSpace(fmt.Sprintf("%s %s", a.IPNet, a.Label))
|
||||
return fmt.Sprintf("%s %s", a.IPNet, a.Label)
|
||||
}
|
||||
|
||||
// ParseAddr parses the string representation of an address in the
|
||||
|
||||
Reference in New Issue
Block a user