func deleteOFRule(dk docker.Client, flow OFRule) error { args := fmt.Sprintf("ovs-ofctl del-flows --strict %s %s,%s", quiltBridge, flow.table, flow.match) err := dk.Exec(supervisor.Ovsvswitchd, strings.Split(args, " ")...) if err != nil { return err } return nil }
func addOFRule(dk docker.Client, flow OFRule) error { args := fmt.Sprintf("ovs-ofctl add-flow %s %s,%s,actions=%s", quiltBridge, flow.table, flow.match, flow.actions) err := dk.Exec(supervisor.Ovsvswitchd, strings.Split(args, " ")...) if err != nil { return err } return nil }