kytos / python-openflow

Low level OpenFlow messages parser used by Kytos SDN Platform
https://kytos.io/
MIT License
46 stars 35 forks source link

Add a better string representation to GroupMod #635

Closed hdiogenes closed 3 years ago

hdiogenes commented 3 years ago

Trying to debug issue #633, I noticed that one of the difficulties of using the library (and a probable cause for the confusion that originated the issue) was the very short output given by the GroupMod class representation: just GroupMod(xid=UBInt32(4)), when it is a deep object with many attributes, including a Header and a ListOfBuckets objects, each bucket with a list of Action's.

So, to ease debugging and to try to avoid the same confusion in the future, we should add a better string representation to GroupMod and its referenced classes.