We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b67b0 commit 25e0a6bCopy full SHA for 25e0a6b
lib/network_utils.ml
@@ -756,8 +756,12 @@ module Ovs = struct
756
757
let bridge_to_vlan name =
758
try
759
- Some (vsctl ["br-to-parent"; name], int_of_string (vsctl ["br-to-vlan"; name]))
760
- with _ -> None
+ let parent = vsctl ["br-to-parent"; name] |> String.rtrim in
+ let vlan = vsctl ["br-to-vlan"; name] |> String.rtrim |> int_of_string in
761
+ Some (parent, vlan)
762
+ with e ->
763
+ debug "bridge_to_vlan: %s" (Printexc.to_string e);
764
+ None
765
766
let get_bond_link_status name =
767
0 commit comments