Use neutron-lib portbindings api-def

This patch refactors dragonflow  to use portbindings
from neutron-lib. For more details see [1].

NeutronLibImpact

[1] https://review.openstack.org/422210/

Change-Id: Icfc27e2ac76b7bda0e9fceae30217610cdc64256
This commit is contained in:
Boden R 2017-01-19 09:18:29 -07:00
parent 21cbb720f9
commit e6ce1b2f80
3 changed files with 3 additions and 3 deletions

View File

@ -10,10 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.
from neutron_lib.api.definitions import portbindings
from oslo_config import cfg
from dragonflow._i18n import _
from neutron.extensions import portbindings
df_opts = [
cfg.IPOpt('remote_db_ip',

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from neutron.extensions import portbindings
from neutron_lib.api.definitions import portbindings
DF_SG_DEFAULT_NAME = 'no_sg_name'
DF_SUBNET_DEFAULT_NAME = 'no_subnet_name'

View File

@ -16,11 +16,11 @@ from neutron.callbacks import resources
from neutron import context as n_context
from neutron.extensions import allowedaddresspairs as addr_pair
from neutron.extensions import extra_dhcp_opt as edo_ext
from neutron.extensions import portbindings
from neutron.extensions import portsecurity as psec
from neutron.plugins.common import constants
from neutron.plugins.ml2 import driver_api
from neutron.plugins.ml2 import models
from neutron_lib.api.definitions import portbindings
from neutron_lib.api import validators
from neutron_lib import constants as n_const
from neutron_lib import exceptions as n_exc