func (c *CNIConfig) DelNetwork(net *NetworkConfig, rt *RuntimeConf) error { pluginPath := invoke.FindInPath(net.Network.Type, c.Path) return invoke.ExecPluginWithoutResult(pluginPath, net.Bytes, c.args("DEL", rt)) }
func (c *CNIConfig) AddNetwork(net *NetworkConfig, rt *RuntimeConf) (*types.Result, error) { pluginPath := invoke.FindInPath(net.Network.Type, c.Path) return invoke.ExecPluginWithResult(pluginPath, net.Bytes, c.args("ADD", rt)) }