Return value of VSwitch.ListBridges()
hwchiu opened this issue · 3 comments
hwchiu commented
Hi all.
If there're not any OpenvSwitch in the system but the length of the return value of VSwitch.ListBridges()
is 1 not zero.
I think that is caused by the strings.Split
and you can find it below.
Lines 85 to 93 in 56e8160
Do we need to fix it by return a empty string array if the output of list-br
is empty string?
Thanks.
mdlayher commented
Yep, that makes sense to me!
chenyunchen commented
Same here. Fix this #54 to return the empty array. :)
hwchiu commented
Has fixed, thanks