Skip to content

Commit 072984c

Browse files
fillzerohuizh
authored andcommitted
CP-23093: Add igmp_snooping field for bridge
Signed-off-by: Liang Dai <[email protected]>
1 parent da3aa11 commit 072984c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

network/network_interface.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ type bridge_config_t = {
117117
ports: (port * port_config_t) list;
118118
vlan: (bridge * int) option;
119119
bridge_mac: string option;
120+
igmp_snooping: bool option;
120121
other_config: (string * string) list;
121122
persistent_b: bool;
122123
}
@@ -145,6 +146,7 @@ let default_bridge = {
145146
ports = [];
146147
vlan = None;
147148
bridge_mac = None;
149+
igmp_snooping = None;
148150
other_config = [];
149151
persistent_b = false;
150152
}
@@ -286,7 +288,7 @@ module Bridge = struct
286288
external get_all : debug_info -> unit -> bridge list = ""
287289
external get_bond_links_up : debug_info -> name:port -> int = ""
288290
external create : debug_info -> ?vlan:(bridge * int) ->
289-
?mac:string -> ?other_config:(string * string) list -> name:bridge -> unit -> unit = ""
291+
?mac:string -> ?igmp_snooping:bool -> ?other_config:(string * string) list -> name:bridge -> unit -> unit = ""
290292
external destroy : debug_info -> ?force:bool -> name:bridge -> unit -> unit = ""
291293
external get_kind : debug_info -> unit -> kind = ""
292294
external get_ports : debug_info -> name:bridge -> (port * iface list) list = ""

0 commit comments

Comments
 (0)