server: respect ocid.network.plugin_dir setting
Previously ocicni did not have support for setting the plugin directory.
Now that it has grown support for it, use it to actually respect the
setting a user has provided for ocid.network.* options.
@@ -476,7 +476,7 @@ func New(config *Config) (*Server, error) {
}
sandboxes := make(map[string]*sandbox)
containers := oci.NewMemoryStore()
- netPlugin, err := ocicni.InitCNI(config.NetworkDir)
+ netPlugin, err := ocicni.InitCNI(config.NetworkDir, config.PluginDir)
if err != nil {
return nil, err
}
