Implement an Open_vSwitch configuration module
This commit is contained in:
parent
82b24f5411
commit
ae00e7b76d
3 changed files with 169 additions and 1 deletions
|
|
@ -10,7 +10,8 @@ defmodule Tres.Application do
|
|||
|
||||
{cb_mod, _cb_args} = Tres.Utils.get_callback_module
|
||||
children = [worker(Registry, [[keys: :unique, name: SwitchRegistry]], id: SwitchRegistry),
|
||||
supervisor(Tres.MessageHandlerSup, [cb_mod], id: MessageHandlerSup)]
|
||||
supervisor(Tres.MessageHandlerSup, [cb_mod], id: MessageHandlerSup),
|
||||
supervisor(OVSDB, [], id: OVSDB)]
|
||||
opts = [strategy: :one_for_one, name: Tres.Supervisor]
|
||||
{:ok, _connection_pid} = Tres.Utils.start_openflow_listener
|
||||
Supervisor.start_link(children, opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue