Skip to content

Commit 2ac313f

Browse files
committed
Add PVS_proxy module to Network_interface
This module contains metadata and functions to configure a PVS proxy daemon running on the host. Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
1 parent 18084be commit 2ac313f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

network/network_interface.ml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,3 +304,35 @@ module Bridge = struct
304304
external make_config : debug_info -> ?conservative:bool -> config:(bridge * bridge_config_t) list-> unit -> unit = ""
305305
end
306306

307+
exception PVS_proxy_connection_error
308+
309+
module PVS_proxy = struct
310+
module Server = struct
311+
type t = {
312+
uuid: string;
313+
addresses: Unix.inet_addr list;
314+
first_port: int;
315+
last_port: int;
316+
}
317+
end
318+
319+
module Client = struct
320+
type t = {
321+
uuid: string;
322+
mac: string;
323+
interface: string;
324+
prepopulate: bool;
325+
}
326+
end
327+
328+
type t = {
329+
farm_uuid: string;
330+
farm_name: string;
331+
servers: Server.t list;
332+
clients: Client.t list;
333+
vdi: string;
334+
}
335+
336+
external configure_farm : debug_info -> PVS_proxy.t -> unit = ""
337+
external remove_farm : debug_info -> string -> unit = ""
338+
end

0 commit comments

Comments
 (0)