Skip to content

Commit

Permalink
[tests] update of tests for new format
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Oct 31, 2011
1 parent 4b6a9de commit 460c560
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions tests/openflow/controller/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,11 @@ let init controller =
pp "test controller register packet_in cb\n";
OC.register_cb controller OE.PACKET_IN packet_in_cb

let main () =
lwt mgr, mgr_t = Net.Manager.create () in
let port = 6633 in
let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
OC.listen mgr ip port init

let _ =
OS.Main.run (main ())
let run () =
Net.Manager.create (fun t interface id ->
Printf.printf "new if %s\n%!" id;
let port = 6633 in
let ip = None in (* Net.Nettypes.ipv4_addr_of_string "172.16.0.1" in *)
OC.listen t ip port init
)

2 changes: 1 addition & 1 deletion tests/openflow/controller/of_controller.mir
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Main
Main.run

0 comments on commit 460c560

Please sign in to comment.