]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Merge "Support Port Binding Extension in Cisco N1kv plugin"
authorJenkins <jenkins@review.openstack.org>
Wed, 26 Feb 2014 23:19:52 +0000 (23:19 +0000)
committerGerrit Code Review <review@openstack.org>
Wed, 26 Feb 2014 23:19:52 +0000 (23:19 +0000)
1  2 
neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
neutron/tests/unit/cisco/n1kv/test_n1kv_plugin.py

index 392f042381b5be8807fe047ae5ac7bdbb2bab959,ceef16b6f35745a0b6bd81eb50ecc221242b648c..a76d784908fdb3ee03c116e17d0dad60bc08ba03
@@@ -91,9 -94,9 +94,9 @@@ class N1kvNeutronPluginV2(db_base_plugi
      # bulk operations.
      __native_bulk_support = False
      supported_extension_aliases = ["provider", "agent",
 -                                   "n1kv_profile", "network_profile",
 +                                   "n1kv", "network_profile",
                                     "policy_profile", "external-net", "router",
-                                    "credential"]
+                                    "binding", "credential"]
  
      def __init__(self, configfile=None):
          """
index f872111b7a37fb20078d4e1baabfe1aa451296b1,ad67c709f8da6eccac24a3b1739c0f85c009c6fe..909df25905a23c22ba48de36538cb6a38bd6dc19
@@@ -304,9 -306,12 +306,12 @@@ class TestN1kvHTTPResponse(test_plugin.
  
  
  class TestN1kvPorts(test_plugin.TestPortsV2,
-                     N1kvPluginTestCase):
+                     N1kvPluginTestCase,
+                     test_bindings.PortBindingsTestCase):
+     VIF_TYPE = portbindings.VIF_TYPE_OVS
+     HAS_PORT_FILTER = False
  
 -    def test_create_port_with_default_n1kv_profile_id(self):
 +    def test_create_port_with_default_n1kv_policy_profile_id(self):
          """Test port create without passing policy profile id."""
          with self.port() as port:
              db_session = db.get_session()