X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=RO-SDN-onos_openflow%2Fosm_rosdn_onosof%2Fonos_of.py;fp=RO-SDN-onos_openflow%2Fosm_rosdn_onosof%2Fonos_of.py;h=be8fa7d5902e4ce54f09716dcd4495ddedf90023;hp=34359ae0d48761936816159a657f907b1a2a39ba;hb=aca8cb5e63ebd11cc69373323d8df62b5d8cbfe2;hpb=df48655ed39c3b5202289bcc84cd1618ce5464af diff --git a/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py b/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py index 34359ae0..be8fa7d5 100644 --- a/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py +++ b/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py @@ -128,7 +128,7 @@ class OfConnOnos(OpenflowConn): self.logger.debug("get_of_switches " + error_text) info = of_response.json() - if type(info) != dict: + if not info.isinstance(dict): self.logger.error( "get_of_switches. Unexpected response, not a dict: %s", str(info) ) @@ -312,7 +312,7 @@ class OfConnOnos(OpenflowConn): info = of_response.json() - if type(info) != dict: + if not info.isinstance(dict): self.logger.error( "get_of_rules. Unexpected response, not a dict: %s", str(info),