notes about brctl, could potentially be replaced by ip

This commit is contained in:
Hannes Mehnert 2019-11-21 12:52:53 +01:00
parent 6206e8681a
commit 34817a2090

View file

@ -146,6 +146,8 @@ let create_tap bridge =
in
let tap = find_n 0 in
Bos.OS.Cmd.run Bos.Cmd.(v "ip" % "tuntap" % "add" % "mode" % "tap" % tap) >>= fun () ->
(* TODO maybe: ip link set $tap master $bridge -- no brctl *)
(* TODO also needed? ip link set dev $tap up -- or is it auto-up? *)
Bos.OS.Cmd.run Bos.Cmd.(v "brctl" % "addif" % bridge % tap) >>= fun () ->
Ok tap