On 10 Jul 2024, at 19:04, Adrian Moreno wrote: > Add a flow formatting framework and one implementation for console > printing using rich. > > The flow formatting framework is a simple set of classes that can be > used to write different flow formatting implementations. It supports > styles to be described by any class, highlighting and config-file based > style definition. > > The first flow formatting implementation is also introduced: the > ConsoleFormatter. It uses the an advanced rich-text printing library > [1]. > > The console printing supports: > - Heatmap: printing the packet/byte statistics of each flow in a color > that represents its relative size: blue (low) -> red (high). > - Printing a banner with the file name and alias. > - Extensive style definition via config file. > > This console format is added to both OpenFlow and Datapath flows. > > Examples: > - Highlight drops in datapath flows: > $ ovs-flowviz -i flows.txt --highlight "drop" datapath console > - Quickly detect where most packets are going using heatmap and > paginated output: > $ ovs-ofctl dump-flows br-int | ovs-flowviz openflow console -h > > [1] https://rich.readthedocs.io/en/stable/introduction.html > > Signed-off-by: Adrian Moreno <amore...@redhat.com> > --- Thanks for sending the v5, the changes look good to me. Cheers, Eelco Acked-by: Eelco Chaudron <echau...@redhat.com> _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- Re: [ovs-dev] [PATCH v5 03/13] python: ovs: Add flowvi... Eelco Chaudron
- [ovs-dev] [PATCH v5 06/13] python: ovs: flowviz: Add defaul... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 06/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 10/13] python: ovs: flowviz: Add Openfl... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 10/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 11/13] python: ovs: flowviz: Add datapa... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 11/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 04/13] python: ovs: flowviz: Add file p... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 04/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 05/13] python: ovs: flowviz: Add consol... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 05/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 07/13] python: ovs: flowviz: Add html f... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 07/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 09/13] python: ovs: flowviz: Add OpenFl... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 09/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 08/13] python: ovs: flowviz: Add datapa... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 08/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 12/13] python: ovs: flowviz: Add datapa... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 12/13] python: ovs: flowviz: A... Eelco Chaudron
- [ovs-dev] [PATCH v5 13/13] documentation: Document ovs-flow... Adrian Moreno
- Re: [ovs-dev] [PATCH v5 13/13] documentation: Document... Eelco Chaudron