]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Change the ovs plugin create_*() calls to take the kwargs param
authorBrad Hall <brad@nicira.com>
Wed, 26 Oct 2011 19:28:37 +0000 (12:28 -0700)
committerBrad Hall <brad@nicira.com>
Wed, 26 Oct 2011 19:29:12 +0000 (12:29 -0700)
Change-Id: I16fe3386a172f007573eac2c2de6d23b29a348ad

quantum/plugins/openvswitch/ovs_quantum_plugin.py

index 928e16464494f30f20571328391e33f718f900c1..f25893e7f032f9e98e4b0ef4777fb4563b3a0692 100644 (file)
@@ -121,7 +121,7 @@ class OVSQuantumPlugin(QuantumPluginBase):
             res['net-ports'] = ports
         return res
 
-    def create_network(self, tenant_id, net_name):
+    def create_network(self, tenant_id, net_name, **kwargs):
         net = db.network_create(tenant_id, net_name)
         LOG.debug("Created network: %s" % net)
         vlan_id = self.vmap.acquire(str(net.uuid))
@@ -165,7 +165,7 @@ class OVSQuantumPlugin(QuantumPluginBase):
             ids.append(d)
         return ids
 
-    def create_port(self, tenant_id, net_id, port_state=None):
+    def create_port(self, tenant_id, net_id, port_state=None, **kwargs):
         LOG.debug("Creating port with network_id: %s" % net_id)
         port = db.port_create(net_id, port_state)
         return self._make_port_dict(str(port.uuid), port.state,