Implement an Open_vSwitch configuration module

This commit is contained in:
Eishun Kondoh 2017-11-27 00:21:36 +09:00
parent 82b24f5411
commit ae00e7b76d
3 changed files with 169 additions and 1 deletions

View file

@ -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)