Skip to content

Commit d0b67b0

Browse files
committed
Call mod-port on parent bridge, not "fake" VLAN bridge
Signed-off-by: Rob Hoes <[email protected]>
1 parent 55059b3 commit d0b67b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

networkd/network_server.ml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,12 @@ module Bridge = struct
774774
match !backend_kind with
775775
| Openvswitch ->
776776
ignore (Ovs.create_port ~internal:true name bridge);
777-
Ovs.mod_port bridge name "no-flood";
777+
let real_bridge =
778+
match Ovs.bridge_to_vlan bridge with
779+
| Some (parent, _) -> parent
780+
| None -> bridge
781+
in
782+
Ovs.mod_port real_bridge name "no-flood";
778783
Interface.bring_up () dbg ~name
779784
| Bridge ->
780785
raise Not_implemented

0 commit comments

Comments
 (0)