diff options
author | Timothy Redaelli <tredaelli@redhat.com> | 2020-06-19 15:53:52 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2020-08-26 21:26:41 +0200 |
commit | 7524d556ba20376448ef4d734ecae4052bb462fd (patch) | |
tree | 11101b6b3c4c601cace88f2c250182189bf4bcfe | |
parent | 8cc9803c35bf646365e4149a3775a9c9e8f4caf8 (diff) | |
download | openvswitch-7524d556ba20376448ef4d734ecae4052bb462fd.tar.gz |
ovs-dpctl-top: Skip "eth()" element.
With commit efde188622ae ("odp-util: Print eth() for Ethernet flows if
packet_type is absent.") "eth()" is printed for Ethernet flows if packet_type
is absent, but this broke "ovs-dpctl-top" since it expects that every
element has a value.
This commit skips the parsing of the empty "eth()" element.
Fixes: efde188622ae ("odp-util: Print eth() for Ethernet flows if packet_type is absent.")
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
Acked-by: Flavio Leitner <fbl@sysclose.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
-rwxr-xr-x | utilities/ovs-dpctl-top.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in index 7f0f1f8c2..fcb178be6 100755 --- a/utilities/ovs-dpctl-top.in +++ b/utilities/ovs-dpctl-top.in @@ -479,6 +479,8 @@ def elements_to_dict(elements): """ Convert line to a hierarchy of dictionaries. """ result = {} for element in elements: + if (element == "eth()"): + continue match = FIELDS_CMPND.search(element) if (match): key = match.group(1) |