Skip to content

Commit a6931e2

Browse files
author
Szymon Mentel
committed
Rename dobby_ofclient to dobby_oflib
1 parent 9bc534b commit a6931e2

13 files changed

Lines changed: 47 additions & 95 deletions

.edts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
:name "dobby_ofclient"
2-
:node-sname "dobby_ofclient_edts"
1+
:name "dobby_oflib"
2+
:node-sname "dobby_oflib_edts"
33
:lib-dirs '("deps" "test")

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
APPS = kernel stdlib sasl erts ssl tools runtime_tools crypto inets \
22
public_key mnesia syntax_tools compiler
3-
COMBO_PLT = $(HOME)/.dobby_ofc_combo_dialyzer_plt
3+
COMBO_PLT = $(HOME)/.dobby_oflib_combo_dialyzer_plt
44

55
.PHONY: all compile deps test clean distclean ct
66

@@ -41,7 +41,7 @@ dialyzer: compile
4141

4242
dev: compile
4343
erl -pa ebin -pa deps/*/ebin \
44-
-eval "[application:start(A) || A <- [compiler, syntax_tools, goldrush, lager, dobby_ofclient]]"
44+
-eval "application:ensure_all_started(dobby_oflib)."
4545

4646
compile test clean: rebar
4747

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# dobby_client
2-
MAP Client
1+
# dobby_oflib
2+
MAP library for OpenFlow

rebar.config

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{sub_dirs, ["deps"]}.
22

33
{deps,
4-
[{lager, "2.1.1", {git, "git://github.com/basho/lager", {tag, "2.1.1"}}}
5-
]}.
4+
[{lager, "2.1.1", {git, "https://github.com/basho/lager", {tag, "2.1.1"}}},
5+
{meck, "0.8.2", {git, "https://github.com/eproxus/meck.git", {tag, "0.8.2"}}}]
6+
}.
67

78
{cover_enabled, true}.
89
{erl_opts, [{parse_transform, lager_transform}, debug_info]}.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
{application, dobby_ofclient,
1+
{application, dobby_oflib,
22
[
3-
{description, "Dobby Client for OpenFlow"},
3+
{description, "Dobby Library for OpenFlow"},
44
{vsn, "0.1"},
55
{registered, []},
66
{applications, [
77
kernel,
88
stdlib,
99
lager
1010
]},
11-
{mod, { dof_app, []}},
1211
{env, []}
1312
]}.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
%%% @doc <Module purpose>
55
%%% @end
66
%%%=============================================================================
7-
-module(dobby_ofclient).
7+
-module(dobby_oflib).
88
-copyright("2015, Erlang Solutions Ltd.").
99

1010
%% API
11-
-export([get_path/2]).
11+
-export([get_path/2,
12+
publish_new_flow/3]).
1213

1314
%% Application callbacks
1415
-export([]).
@@ -38,6 +39,15 @@
3839
get_path(SrcEndPoint, DstEndpoint) ->
3940
{ok, digraph:new()}.
4041

42+
-spec publish_new_flow(Src :: binary(), Dst :: binary(), FlowPath) ->
43+
{ok, NetFlowId :: binary()} | {error, Reason :: term()}
44+
when
45+
FlowPath :: #{DatapathId :: binary() => FlowMods :: list(FlowMod)},
46+
FlowMod :: {Matches :: [term()], Instructions :: [term()], Opts :: [term()]}.
47+
48+
publish_new_flow(SrcEndpoint, DstEndpoint, FlowPath) ->
49+
ok.
50+
4151
%%%=============================================================================
4252
%%% Internal functions
4353
%%%=============================================================================

src/dof_app.erl

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/dof_sup.erl

Lines changed: 0 additions & 32 deletions
This file was deleted.

test/dobby_ofclient.test.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/dobby_ofclient_tests.erl

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)