Skip to content

Commit 3f961f7

Browse files
authored
Merge pull request #89 from robhoes/master
Set no-flood on PVS-proxy ports
2 parents 5e31190 + b5690e7 commit 3f961f7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/network_utils.ml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,10 @@ module Ovs = struct
10271027
) ports)
10281028
in
10291029
List.iter (fun flow -> ignore (ofctl ~log:true ["add-flow"; bridge; flow])) flows
1030+
1031+
let mod_port bridge port action =
1032+
ofctl ~log:true ["mod-port"; bridge; port; action] |> ignore
1033+
10301034
end
10311035
include Make(Cli)
10321036
end

networkd/network_server.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ 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";
777778
Interface.bring_up () dbg ~name
778779
| Bridge ->
779780
raise Not_implemented

0 commit comments

Comments
 (0)