components/openstack/horizon/patches/08-_get_reachable_subnets.patch
author Norm Jacobs <Norm.Jacobs@Oracle.COM>
Mon, 27 Apr 2015 10:19:50 -0500
changeset 4196 d697072a92f5
parent 4010 b64e4d27c23b
child 5405 66fd59fecd68
permissions -rw-r--r--
19782029 userland should be able to build from SCM repositories

This internal patch addresses an apparent Juno regression related to
Launchpad bug 1252403.  It's not suitable for the upstream but a bug
report will be filed to cover the regression and eventually this patch
should be replaced with something official.

--- horizon-2014.2.2/openstack_dashboard/api/neutron.py.orig	2015-02-05 09:06:50.000000000 -0800
+++ horizon-2014.2.2/openstack_dashboard/api/neutron.py	2015-03-22 21:56:14.619688527 -0700
@@ -411,8 +411,7 @@ class FloatingIpManager(network_base.Flo
                           in ext_net_ids)]
         reachable_subnets = set([p.fixed_ips[0]['subnet_id'] for p in ports
                                  if ((p.device_owner ==
-                                      'network:router_interface')
-                                     and (p.device_id in gw_routers))])
+                                      'network:router_interface'))])
         return reachable_subnets
 
     def list_targets(self):