amorenoz / ovs-dbg

Scripts to help debug OVS and OVN
Apache License 2.0
22 stars 8 forks source link

Optimization: create flow factory #63

Closed amorenoz closed 2 years ago

amorenoz commented 2 years ago

Currently each Flow is created using a constructor that parses the string. This is inefficient because we call the same @classmethods over and over for each flow. Since flows are typically parsed in batch, it makes sense to create a class that has the parsing logic and just creates flows so the decoder information can be reused