Comment 6 for bug 1454872

Revision history for this message
Rahul (rahuls) wrote : Re: Juno Horizon: Not able to associate Floating-IP to a VM from UI

root@nodeg36:/usr/share/openstack-dashboard# diff -ruN openstack_dashboard/api/neutron_orig.txt openstack_dashboard/api/neutron.py
--- openstack_dashboard/api/neutron_orig.txt 2015-05-20 21:02:08.009885387 +0530
+++ openstack_dashboard/api/neutron.py 2015-05-20 21:05:17.261429136 +0530
@@ -420,7 +420,6 @@
         ports = port_list(self.request, tenant_id=tenant_id)
         servers, has_more = nova.server_list(self.request)
         server_dict = SortedDict([(s.id, s.name) for s in servers])
- reachable_subnets = self._get_reachable_subnets(ports)

         targets = []
         for p in ports:
@@ -430,8 +429,6 @@
             port_id = p.id
             server_name = server_dict.get(p.device_id)
             for ip in p.fixed_ips:
- if ip['subnet_id'] not in reachable_subnets:
- continue
                 target = {'name': '%s: %s' % (server_name, ip['ip_address']),
                           'id': '%s_%s' % (port_id, ip['ip_address']),
                           'instance_id': p.device_id}