Implement Openflow Protocol and Callback system
This commit is contained in:
parent
fc02a678de
commit
e52fe31b79
48 changed files with 937 additions and 244 deletions
14
lib/tres/controller.ex
Normal file
14
lib/tres/controller.ex
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
defmodule Tres.Controller do
|
||||
def controller_helpers do
|
||||
quote do
|
||||
import Tres.SwitchRegistry, only: [send_message: 2]
|
||||
|
||||
use Tres.Messages
|
||||
use Tres.MessageHelper
|
||||
end
|
||||
end
|
||||
|
||||
defmacro __using__(_) do
|
||||
controller_helpers()
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue