mirror of
https://github.com/containers/podman.git
synced 2025-06-24 19:42:56 +08:00
Update ocicni vendor to pick up bugfixes
Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #991 Approved by: rhatdan
This commit is contained in:
3
vendor/github.com/cri-o/ocicni/pkg/ocicni/ocicni.go
generated
vendored
3
vendor/github.com/cri-o/ocicni/pkg/ocicni/ocicni.go
generated
vendored
@ -142,6 +142,9 @@ func (plugin *cniNetworkPlugin) monitorNetDir() {
|
|||||||
logrus.Errorf("CNI setting failed, continue monitoring: %v", err)
|
logrus.Errorf("CNI setting failed, continue monitoring: %v", err)
|
||||||
|
|
||||||
case err := <-watcher.Errors:
|
case err := <-watcher.Errors:
|
||||||
|
if err == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
logrus.Errorf("CNI monitoring error %v", err)
|
logrus.Errorf("CNI monitoring error %v", err)
|
||||||
close(plugin.monitorNetDirChan)
|
close(plugin.monitorNetDirChan)
|
||||||
return
|
return
|
||||||
|
6
vendor/github.com/cri-o/ocicni/pkg/ocicni/types.go
generated
vendored
6
vendor/github.com/cri-o/ocicni/pkg/ocicni/types.go
generated
vendored
@ -9,12 +9,6 @@ const (
|
|||||||
DefaultInterfaceName = "eth0"
|
DefaultInterfaceName = "eth0"
|
||||||
// CNIPluginName is the default name of the plugin
|
// CNIPluginName is the default name of the plugin
|
||||||
CNIPluginName = "cni"
|
CNIPluginName = "cni"
|
||||||
// DefaultNetDir is the place to look for CNI Network
|
|
||||||
DefaultNetDir = "/etc/cni/net.d"
|
|
||||||
// DefaultCNIDir is the place to look for cni config files
|
|
||||||
DefaultCNIDir = "/opt/cni/bin"
|
|
||||||
// VendorCNIDirTemplate is the template for looking up vendor specific cni config/executable files
|
|
||||||
VendorCNIDirTemplate = "%s/opt/%s/bin"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// PortMapping maps to the standard CNI portmapping Capability
|
// PortMapping maps to the standard CNI portmapping Capability
|
||||||
|
12
vendor/github.com/cri-o/ocicni/pkg/ocicni/types_unix.go
generated
vendored
Normal file
12
vendor/github.com/cri-o/ocicni/pkg/ocicni/types_unix.go
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// +build !windows
|
||||||
|
|
||||||
|
package ocicni
|
||||||
|
|
||||||
|
const (
|
||||||
|
// DefaultNetDir is the place to look for CNI Network
|
||||||
|
DefaultNetDir = "/etc/cni/net.d"
|
||||||
|
// DefaultCNIDir is the place to look for cni config files
|
||||||
|
DefaultCNIDir = "/opt/cni/bin"
|
||||||
|
// VendorCNIDirTemplate is the template for looking up vendor specific cni config/executable files
|
||||||
|
VendorCNIDirTemplate = "%s/opt/%s/bin"
|
||||||
|
)
|
12
vendor/github.com/cri-o/ocicni/pkg/ocicni/types_windows.go
generated
vendored
Normal file
12
vendor/github.com/cri-o/ocicni/pkg/ocicni/types_windows.go
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// +build windows
|
||||||
|
|
||||||
|
package ocicni
|
||||||
|
|
||||||
|
const (
|
||||||
|
// DefaultNetDir is the place to look for CNI Network
|
||||||
|
DefaultNetDir = "C:\\cni\\etc\\net.d"
|
||||||
|
// DefaultCNIDir is the place to look for cni config files
|
||||||
|
DefaultCNIDir = "C:\\cni\\bin"
|
||||||
|
// VendorCNIDirTemplate is the template for looking up vendor specific cni config/executable files
|
||||||
|
VendorCNIDirTemplate = "C:\\cni\\%s\\opt\\%s\\bin" // XXX(vbatts) Not sure what to do here ...
|
||||||
|
)
|
Reference in New Issue
Block a user