]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
remove router interface on Arista L3 plugin fails
authorSukhdev Kapur <sukhdev@aristanetworks.com>
Sat, 9 May 2015 00:19:58 +0000 (17:19 -0700)
committerSukhdev Kapur <sukhdev@aristanetworks.com>
Sat, 9 May 2015 16:47:27 +0000 (16:47 +0000)
The failure is because of mismatch of the
parameters to _validate_interface_info(). This patch removes
this code as it can be inherited from upstream

Change-Id: I5a92c6d05876e9ab5201e8fac018433eeb5c89e4
Closes-Bug: #1453323
(cherry picked from commit 9c857dab6289047a272a4519479903c92a84dc4c)

neutron/services/l3_router/l3_arista.py

index 583b511f05417af4ba58abd1cd778b280362ada6..d90185f28339f23f10bb6a6589a14f67e97ef3cd 100644 (file)
@@ -278,8 +278,3 @@ class AristaL3ServicePlugin(db_base_plugin_v2.NeutronDbPluginV2,
                         LOG.error(_LE("Error Adding interface %(subnet_id)s "
                                       "to router %(router_id)s on Arista HW"),
                                   {'subnet_id': subnet_id, 'router_id': r})
-
-    def _validate_interface_info(self, interface_info):
-        port_id_specified = interface_info and 'port_id' in interface_info
-        subnet_id_specified = interface_info and 'subnet_id' in interface_info
-        return port_id_specified, subnet_id_specified