Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/network_utils.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,10 @@ module Ovs = struct
) ports)
in
List.iter (fun flow -> ignore (ofctl ~log:true ["add-flow"; bridge; flow])) flows

let mod_port bridge port action =
ofctl ~log:true ["mod-port"; bridge; port; action] |> ignore

end
include Make(Cli)
end
Expand Down
1 change: 1 addition & 0 deletions networkd/network_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ module Bridge = struct
match !backend_kind with
| Openvswitch ->
ignore (Ovs.create_port ~internal:true name bridge);
Ovs.mod_port bridge name "no-flood";
Interface.bring_up () dbg ~name
| Bridge ->
raise Not_implemented
Expand Down