[ovs-git] [openvswitch/ovs] 02707c: ovs-tcpdump: Fallback to read /proc/net/dev on Linux

Timothy Redaelli noreply at github.com
Mon Jan 13 17:42:09 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 02707cd45c5fdc2e871b1893b84cb08feb33ee1a
      https://github.com/openvswitch/ovs/commit/02707cd45c5fdc2e871b1893b84cb08feb33ee1a
  Author: Timothy Redaelli <tredaelli at redhat.com>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M utilities/ovs-tcpdump.in

  Log Message:
  -----------
  ovs-tcpdump: Fallback to read /proc/net/dev on Linux

Currently, ovs-tcpdump uses python3-netifaces in order to get the list of
the network interfaces, but python3-netifaces may not be installed nor
available on some distributions (for example on RHEL7).

This commit adds, only for Linux, an alternative way (that is only used
when netifaces is not available) to read the list of the network interfaces
by reading "/proc/net/dev".

Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list