Implement Openflow Protocol and Callback system
This commit is contained in:
parent
fc02a678de
commit
e52fe31b79
48 changed files with 937 additions and 244 deletions
|
|
@ -24,6 +24,12 @@ defmodule Tres.SwitchRegistry do
|
|||
send_message(message, {dpid, 0})
|
||||
end
|
||||
|
||||
def monitor(datapath_id) do
|
||||
datapath_id
|
||||
|> lookup_pid
|
||||
|> Process.monitor
|
||||
end
|
||||
|
||||
# private function
|
||||
|
||||
defp dispatch(entries, message) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue