digitalocean / go-openvswitch

Go packages which enable interacting with Open vSwitch and related tools. Apache 2.0 Licensed.
Other
295 stars 95 forks source link

Check if list bridge output is empty #54

Closed chenyunchen closed 6 years ago

chenyunchen commented 6 years ago

Looks like strings.Split will let VSwitch.ListBridges() result to []string{""} not []string{} if ovs-vsctl list-br output string is empty: "".