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

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


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: bb6c1b889d67f914fdad672e5fcb1c0d33992f04
      https://github.com/openvswitch/ovs/commit/bb6c1b889d67f914fdad672e5fcb1c0d33992f04
  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>
    main()
  File "/usr/local/bin/ovs-tcpdump", line 454, in main
    mirror_select_all)
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