diff --git a/openstack_dashboard/dashboards/project/instances/tables.py b/openstack_dashboard/dashboards/project/instances/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/instances/tables.py
+++ b/openstack_dashboard/dashboards/project/instances/tables.py
@@ -558,6 +558,10 @@ class AssociateIP(policy.PolicyTargetMixin, tables.LinkAction):
             return False
         if instance.status == "ERROR":
             return False
+        for addresses in instance.addresses.values():
+            for address in addresses:
+                if address.get('OS-EXT-IPS:type') == "floating":
+                    return False
         return not is_deleting(instance)
 
     def get_link_url(self, datum):
Hide attach fip if already fip attached

Only one floating ip is allowed for one instance.
If we try to attach one more IP we are getting error message.
This patch hiding the attach IP action button,
if the instance is already attached with one FIP

Change-Id: I9be<I>ec<I>fc<I>a<I>a3b2cd<I>e<I>
Closes-Bug: #<I>