Use Query instances as iterables when possible

A Query.all() call creates a list of a DB query results.
We can actually use a Query instance as an iterable and
thus avoid creation of a list if we just need to iterate
over those values only once.

Fixes bug 1173133

Change-Id: I06d8eaa9eaba4c71aa0c98000735cb9d83ea19a3
Improve Python 3.x compatibility

Replace the deprecated except x,y: construct with
except x as y:, as that one works with all Python
versions starting with 2.6.x

Change-Id: I13080cfdad32eaef21aa2707fe5d2818bda68535
Stub out get_networks_count properly for pnet unit tests

Bug 1174457

Change-Id: I30a5c549d5d236124a7798a757601e970067b284
Imported Translations from Transifex

Change-Id: I7f8f822413f4e11310700882540c6e276016b75f
Merge "Improve Python 3.x compatibility"
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/bigswitch/*
quantum/plugins/brocade/*

Change-Id: I9bf4381738319551a5993d4b279a5cec3425b7ef
Merge "Imported Translations from Transifex"
Merge "Use Query instances as iterables when possible"
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/hyperv/*
quantum/plugins/linuxbridge/*
quantum/plugins/nec/*
quantum/plugins/nicira/*
quantum/plugins/plumgrid/*
quantum/plugins/ryu/*
quantum/plugins/services/*

Change-Id: I3525aa57235935d90ec7b70c65ba15012ce575a3
Docstrings formatted according to pep257

Bug #1020184

quantum/tests/*

Change-Id: I5c31a70e80c7fd448b92b43d34341301533b59ba
Docstrings formatted according to pep257

Bug #1020184

quantum/plugins/cisco/*

Change-Id: Ibb6a865a17de0ea4f1865972624e4c5da0e96b34
Merge "Docstrings formatted according to pep257"
Fix 'null' response on router-interface-remove operation

To avoid a 'null' response body, the delete operation returns a response
that is consistent with its add counterpart, i.e. we return the router
id with details about the interface being affected by the operation, as
well as the tenant id.

A unit test is added to ensure that the right body is returned and minor
adjustments have been made to the plugins affected by the change.

Long-term, a delete operation should really return 204 w/o a body, but
this requires some major rework of the WSGI handling within Quantum.
This is an interim solution that deals with an 'ugly' response body,
whilst keeping backward compatibility.

Fixes bug 1173284

Change-Id: Icaab87ad0c8561c0690c8f0a14db815d8886bc71
Imported Translations from Transifex

Change-Id: Ifad1de1eb9891cc0639470a19058135c21753db7
Use sql alchemy to fetch a scalar for the max tunnel id

Bug 1174998

Change-Id: I77203c81c2c910a1a601416efc4567f1320a2eef
Merge "Docstrings formatted according to pep257"
Merge "Docstrings formatted according to pep257"
Treat unbound port

Following a nice suggestion by S Orlando regarding the fix for
bug 1173463

Change-Id: I2fa2a2fa7852025f0c18ff27c5fffc5667ce8378
Merge "Imported Translations from Transifex"
Merge "Use sql alchemy to fetch a scalar for the max tunnel id"