Skip to content

Commit d6c9928

Browse files
authored
Merge pull request #122 from sharady/CA-201728
CA-201728: Add new interface `is_vlan_in_use`
2 parents e180474 + 59ccacd commit d6c9928

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)