1
0
mirror of https://github.com/rancher/os.git synced 2025-08-25 09:49:22 +00:00

Ignore docker0 for valid netlinks

This commit is contained in:
niusmallnan 2018-11-21 17:49:43 +08:00
parent 6be7426bf3
commit b131ddeb7c

View File

@ -561,7 +561,7 @@ func GetValidLinkList() ([]netlink.Link, error) {
for _, l := range links {
linkName := l.Attrs().Name
if linkName == "lo" || linkName == "docker-sys" {
if linkName == "lo" || linkName == "docker-sys" || linkName == "docker0" {
continue
}
validLinkList = append(validLinkList, l)