def _simple_remove(args): del_old = {"dpid": datapath, "priority": args.priority} if args.cookie: del_old["cookie"] = args.cookie if args.table_id: del_old["table_id"] = args.table_id print(del_old) delete_flowentry(del_old)
def _deactivate_flow_rules(self): """ Removes flows from ovs, REST needs a dpid argument """ for req in self._requests: req["dpid"] = self._datapath delete_flowentry(req, self._ovs_ip)