You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data inside complex enums can't be directly accessed in the Python
representation of the events. The only way was to use the dict
representation, which prevents from using the event fields directly.
This made the enum fields to stand out, including the whole OvS event.
Instead do a little dance with serde and allow in Python things like:
print(e['skb'].ip.version.v6.flow_label)
This does not change the JSON representation.
Closes#437.
Suggested-by: Adrian Moreno <[email protected]>
Signed-off-by: Antoine Tenart <[email protected]>
Follow up after #426
Based on #426 (comment), look at what enums can be modified slightly in order to improve how they are accessed from python.
The text was updated successfully, but these errors were encountered: