]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Search in /sys/class/net for network devices
authorThomas Bechtold <tbechtold@suse.com>
Mon, 9 Feb 2015 12:25:56 +0000 (13:25 +0100)
committerThomas Bechtold <tbechtold@suse.com>
Mon, 9 Feb 2015 12:34:39 +0000 (13:34 +0100)
commite228a3dc69eca08896c4e22d6a2d51b60a9a0a94
treee28364f5d99e4e8a3df2cacfdd614fe6e40499ea
parent5ce64130abd3178791bae4e42257de7ac755d734
Search in /sys/class/net for network devices

When using /sys/devices/net/virtual to search for tap devices, not all
devices are listed there (i.e. when using Xen).
Also according to the Linux kernel documentation (see
ABI/testing/sysfs-devices), /sys/class should be used
instead of /sys/devices.

Change-Id: I9b4981332b66b6d3f9c36511c81432d3e7644bdd
Closes-Bug: #1419754
neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py