Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 460c560

Browse files
committedOct 31, 2011
[tests] update of tests for new format
·
1 parent 4b6a9de commit 460c560

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed
 

‎tests/openflow/controller/main.ml

+7-8
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ let init controller =
4848
pp "test controller register packet_in cb\n";
4949
OC.register_cb controller OE.PACKET_IN packet_in_cb
5050

51-
let main () =
52-
lwt mgr, mgr_t = Net.Manager.create () in
53-
let port = 6633 in
54-
let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
55-
OC.listen mgr ip port init
56-
57-
let _ =
58-
OS.Main.run (main ())
51+
let run () =
52+
Net.Manager.create (fun t interface id ->
53+
Printf.printf "new if %s\n%!" id;
54+
let port = 6633 in
55+
let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
56+
OC.listen t ip port init
57+
)
5958

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Main
1+
Main.run

0 commit comments

Comments
 (0)
Please sign in to comment.