Skip to content

Commit 1836c1b

Browse files
committed
CA-234506: Don't lose the port kind param in bridge.make_config
This (relatively new) kind parameter was not passed on to the function that adds the port to the bridge, so that it would add a port of the wrong kind. Signed-off-by: Rob Hoes <[email protected]>
1 parent 95f5d8a commit 1836c1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

networkd/network_server.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -891,8 +891,8 @@ module Bridge = struct
891891
update_config bridge_name c;
892892
exec (fun () ->
893893
create () dbg ?vlan ?mac:bridge_mac ~other_config ~name:bridge_name ();
894-
List.iter (fun (port_name, {interfaces; bond_properties; bond_mac}) ->
895-
add_port () dbg ?bond_mac ~bridge:bridge_name ~name:port_name ~interfaces ~bond_properties ()
894+
List.iter (fun (port_name, {interfaces; bond_properties; bond_mac; kind}) ->
895+
add_port () dbg ?bond_mac ~bridge:bridge_name ~name:port_name ~interfaces ~bond_properties ~kind ()
896896
) ports
897897
)
898898
) config

0 commit comments

Comments
 (0)