We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8f945 commit 3e31cceCopy full SHA for 3e31cce
async/Async_OpenFlow.mli
@@ -184,6 +184,8 @@ module OpenFlow0x01 : sig
184
open OpenFlow0x01_Core
185
open OpenFlow0x01_Stats
186
187
+ val get_switches : t -> SDN_Types.switchId list
188
+
189
val clear_flows
190
: ?pattern:pattern -> t -> Client_id.t
191
-> (unit, exn) Deferred.Result.t
async/Async_OpenFlow0x01.ml
@@ -84,6 +84,8 @@ module Controller = struct
84
let c_id = client_id_of_switch_exn t sw_id in
85
ChunkController.has_client_id t.sub c_id
86
87
+ let get_switches t = SwitchMap.keys t.s2c
88
89
let send t sw_id msg =
90
91
ChunkController.send t.sub c_id (Message.marshal' msg)
0 commit comments