Minor change in vCD connector for get network list 53/6053/1
authorkasar <pkasar@vmware.com>
Wed, 2 May 2018 12:58:07 +0000 (05:58 -0700)
committerkasar <pkasar@vmware.com>
Wed, 2 May 2018 12:58:16 +0000 (05:58 -0700)
Signed-off-by: kasar <pkasar@vmware.com>
osm_ro/vimconn_vmware.py

index 4c81b9b..2a8adaf 100644 (file)
@@ -586,7 +586,7 @@ class vimconnector(vimconn.vimconnector):
                                     shared = False
                                 filter_dict["shared"] = shared
                                 filter_dict["tenant_id"] = vdc_uuid
-                                if net_details.get('status') == 1:
+                                if int(net_details.get('status')) == 1:
                                     filter_dict["admin_state_up"] = True
                                 else:
                                     filter_dict["admin_state_up"] = False
@@ -674,7 +674,7 @@ class vimconnector(vimconn.vimconnector):
                                     shared = False
                                 filter_entry["shared"] = shared
                                 filter_entry["tenant_id"] = vdcid
-                                if net_details.get('status') == 1:
+                                if int(net_details.get('status')) == 1:
                                     filter_entry["admin_state_up"] = True
                                 else:
                                     filter_entry["admin_state_up"] = False
@@ -745,7 +745,7 @@ class vimconnector(vimconn.vimconnector):
                                     shared = False
                                 filter_dict["shared"] = shared
                                 filter_dict["tenant_id"] = vdc_id
-                                if net_details.get('status') == 1:
+                                if int(net_details.get('status')) == 1:
                                     filter_dict["admin_state_up"] = True
                                 else:
                                     filter_dict["admin_state_up"] = False