Skip to content

Commit 59ccacd

Browse files
committed
CA-201728: Add new interface has_vlan and exception Vlan_in_use
Signed-off-by: sharad yadav <sharad.yadav@citrix.com>
1 parent a88c9b9 commit 59ccacd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

network/network_interface.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ exception Script_error of (string * string) list
6363
exception Read_error of string
6464
exception Write_error of string
6565
exception Not_implemented
66+
exception Vlan_in_use of (string * int)
6667

6768
(** {2 Types} *)
6869

@@ -203,6 +204,7 @@ module Interface = struct
203204
external get_capabilities : debug_info -> name:iface -> string list = ""
204205
external is_connected : debug_info -> name:iface -> bool = ""
205206
external is_physical : debug_info -> name:iface -> bool = ""
207+
external has_vlan: debug_info -> name:iface -> vlan:int -> bool = ""
206208
external bring_up : debug_info -> name:iface -> unit = ""
207209
external bring_down : debug_info -> name:iface -> unit = ""
208210
external is_persistent : debug_info -> name:iface -> bool = ""

0 commit comments

Comments
 (0)