Skip to content

Commit

Permalink
1. Added attribute "VIF_TYPE_VROUTER" in (/opt/stack/contrail/opensta…
Browse files Browse the repository at this point in the history
…ck/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py)

2. This attribute was used to be in (neutron/extensions/portbindings.py) and has been removed after Kilo.

Change-Id: Ic876976f75863a84c75ccaeb40cec882ff836211
Closes-Bug: #1591995
  • Loading branch information
sahilsabharwal committed Jun 21, 2016
1 parent 79f4242 commit 07ffed4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -46,6 +46,8 @@
# the VIF class
NIC_NAME_LEN = 14

VIF_TYPE_VROUTER = 'vrouter'

LOG = logging.getLogger(__name__)

vnc_opts = [
Expand Down Expand Up @@ -504,7 +506,7 @@ def update_port(self, context, port_id, port):
port_id)
else:
port['port'][portbindings.VIF_TYPE] = \
portbindings.VIF_TYPE_VROUTER
VIF_TYPE_VROUTER
self._delete_vhostuser_vif_details_from_port(port['port'],
original)
else:
Expand Down
Expand Up @@ -23,7 +23,6 @@
from oslo.config import cfg

from neutron.api import extensions
from neutron.extensions import portbindings
from neutron.tests.unit import _test_extension_portbindings as test_bindings

try:
Expand All @@ -50,6 +49,7 @@
contrail_res_handler)
from neutron_plugin_contrail.tests.unit.opencontrail.vnc_mock import MockVnc
from vnc_api import vnc_api
from neutron_plugin_contrail.plugins.opencontrail import contrail_plugin_base as plugin_base

CONTRAIL_PKG_PATH = (
"neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_v3")
Expand Down Expand Up @@ -352,7 +352,7 @@ class TestContrailPortBinding(JVContrailPluginTestCase,
test_bindings.PortBindingsTestCase):
# from neutron_plugin_contrail.plugins.opencontrail.contrail_plugin
# import (NeutronPluginContrailCoreV2)
VIF_TYPE = portbindings.VIF_TYPE_VROUTER
VIF_TYPE = plugin_base.VIF_TYPE_VROUTER
HAS_PORT_FILTER = True

def setUp(self):
Expand Down

0 comments on commit 07ffed4

Please sign in to comment.