Exemplo n.º 1
0
    def delete_flow(self, ryu_req):
        """ Parse the ryu request and delete flow from ovs table """
        actions = to_instructions(self._datapath, ryu_req["instructions"])

        flows.delete_flow(self._datapath,
                          ryu_req["table_id"],
                          ryu_req["match"],
                          instructions=actions,
                          priority=ryu_req["priority"])
Exemplo n.º 2
0
    def insert_flow(self, ryu_req):
        """ Parse the ryu request and add flow to the ovs table """
        actions = to_instructions(self._datapath, ryu_req["instructions"])

        flows.add_drop_flow(self._datapath,
                            ryu_req["table_id"],
                            ryu_req["match"],
                            instructions=actions,
                            priority=ryu_req["priority"])