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

dumpPortsPrefix is shown multiple times on ovs with many ports #114

Open mstinsky opened 2 years ago

mstinsky commented 2 years ago

Greetings,

while using this library we found that the parsing of the ovs dumpPorts breaks when ovs has a lot of ports because the dumpPortsPrefix "OFPST_PORT reply" can be shown multiple times.

This patch adds a condition to check if we see the dumpPortsPrefix again to continue the loop without parsing it.