[ovs-git] [openvswitch/ovs] 6012a4: ovs-tcpdump: Fix an undefined variable

Ben Pfaff noreply at github.com
Mon Feb 4 20:28:34 UTC 2019

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6012a42000ddc1789fd53a4dae0c2dd2f6cf0600
  Author: Hyong Youb Kim <hyonkim at cisco.com>
  Date:   2019-02-04 (Mon, 04 Feb 2019)

  Changed paths:
    M utilities/ovs-tcpdump.in

  Log Message:
  ovs-tcpdump: Fix an undefined variable

Run ovs-tcpdump without --span, and it throws the following
exception. Define mirror_select_all to avoid the error.

Traceback (most recent call last):
  File "/usr/local/bin/ovs-tcpdump", line 488, in <module>
  File "/usr/local/bin/ovs-tcpdump", line 454, in main
UnboundLocalError: local variable 'mirror_select_all' referenced before assignment

Fixes: 0475db71c650 ("ovs-tcpdump: Add --span to mirror all ports on bridge.")
Acked-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Hyong Youb Kim <hyonkim at cisco.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list