Skip to content

Commit

Permalink
Add 'vxlan-v6.calico', 'wireguard.cali', 'wg-v6.cali' to IP auto-dete…
Browse files Browse the repository at this point in the history
…ction skipping
  • Loading branch information
coutinhop committed Oct 31, 2022
1 parent 76f9693 commit ed64f3f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ var DEFAULT_INTERFACES_TO_EXCLUDE []string = []string{
"^docker.*", "^cbr.*", "^dummy.*",
"^virbr.*", "^lxcbr.*", "^veth.*", "^lo",
"^cali.*", "^tunl.*", "^flannel.*", "^kube-ipvs.*", "^cni.*",
"^vxlan.calico.*",
"^vxlan\\.calico.*", "^vxlan-v6\\.calico.*", "^wireguard\\.cali.*", "^wg-v6\\.cali.*",
}
18 changes: 18 additions & 0 deletions node/pkg/lifecycle/startup/autodetection/interfaces_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,22 @@ var _ = DescribeTable("GetInterfaces",
},
expectFound: false,
}),
Entry("should skip vxlan-v6.calico", getInterfacesTestCase{
getInterfaces: func() ([]net.Interface, error) {
return []net.Interface{{Index: 0, Name: "vxlan-v6.calico"}}, nil
},
expectFound: false,
}),
Entry("should skip wireguard.cali", getInterfacesTestCase{
getInterfaces: func() ([]net.Interface, error) {
return []net.Interface{{Index: 0, Name: "wireguard.cali"}}, nil
},
expectFound: false,
}),
Entry("should skip wg-v6.cali", getInterfacesTestCase{
getInterfaces: func() ([]net.Interface, error) {
return []net.Interface{{Index: 0, Name: "wg-v6.cali"}}, nil
},
expectFound: false,
}),
)

0 comments on commit ed64f3f

Please sign in to comment.