neutron/neutron
Matthew Thode c717a6365c replaces enumeration method used to get a list of interfaces
ip_lib was parsing tunnel links incorrectly. We can create interface
names with any character the filesystem supports (not '..', '/', ':').
Given this we do not know what to delimit on so parsing iproute2 output
is probably not a good idea.

I asked the iproute2 devs what the proper way we should get interface
names is and was told NOT to parse iproute2 output but to use something
like sysfs instead.  http://www.spinics.net/lists/netdev/msg316577.html

This patch pulls interfaces from sysfs (/sys/class/net) and verifies them
via checking if they are links (bonding creates files for instance and
needs to be skipped).

Currently it is not possible without jumping through a ton of hoops to
access a network namespace without iproute2 or cython, so we use ip to
run find to find the correct sysfs directory.  We also only call out to
iproute2 _ONLY_ if needed.

Change-Id: I07d1d297f07857d216649cccf717896574aac301
Closes-Bug: 1374663
2015-03-14 21:15:53 -05:00
..
agent replaces enumeration method used to get a list of interfaces 2015-03-14 21:15:53 -05:00
api Migrate to oslo.log 2015-03-12 11:22:56 +01:00
callbacks Migrate to oslo.log 2015-03-12 11:22:56 +01:00
cmd Migrate to oslo.log 2015-03-12 11:22:56 +01:00
common Migrate to oslo.log 2015-03-12 11:22:56 +01:00
db ML2 cisco_nexus MD: sync config and models with vendor repo 2015-03-13 09:13:38 -04:00
debug Migrate to oslo.log 2015-03-12 11:22:56 +01:00
extensions Migrate to oslo.log 2015-03-12 11:22:56 +01:00
hacking Migrate to oslo.log 2015-03-12 11:22:56 +01:00
locale Imported Translations from Transifex 2015-03-11 06:14:01 +00:00
notifiers Migrate to oslo.log 2015-03-12 11:22:56 +01:00
openstack Migrate to oslo.log 2015-03-12 11:22:56 +01:00
plugins Merge "Brocade vendor code decomposition from neutron repo." 2015-03-13 23:44:43 +00:00
scheduler Migrate to oslo.log 2015-03-12 11:22:56 +01:00
server Migrate to oslo.log 2015-03-12 11:22:56 +01:00
services Merge "Brocade vendor code decomposition from neutron repo." 2015-03-13 23:44:43 +00:00
tests replaces enumeration method used to get a list of interfaces 2015-03-14 21:15:53 -05:00
__init__.py Revert "monkey patch stdlib before importing other modules" 2015-02-11 17:26:33 -08:00
auth.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
context.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
hooks.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
i18n.py oslo: migrate to namespace-less import paths 2015-02-05 15:09:32 +01:00
manager.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
neutron_plugin_base_v2.py Throw exception instances instead of classes 2014-09-07 12:56:30 +04:00
policy.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
quota.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00
service.py Set default of api_workers to number of CPUs 2015-03-12 23:17:04 -04:00
version.py Remove the useless vim modelines 2014-06-21 15:07:31 +08:00
wsgi.py Migrate to oslo.log 2015-03-12 11:22:56 +01:00