Commit 4c83196e authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - ACTN Driver:

- Bug fixing
parent 056f01bf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -121,11 +121,11 @@ class EthtServiceHandler:
            subpath_url = self._subpath_root
        else:
            subpath_url = self._subpath_item.format(etht_service_name=etht_service_name)

        data = self._rest_conf_client.get(subpath_url)

        if not isinstance(data, dict): raise ValueError('data should be a dict')
        if 'ietf-eth-tran-service:etht-svc' not in data:
            raise ValueError('data does not contain key "ietf-eth-tran-service:etht-svc"')
        if 'ietf-eth-tran-service:etht-svc' not in data: return list()
        data = data['ietf-eth-tran-service:etht-svc']
        if 'etht-svc-instances' not in data:
            raise ValueError('data["ietf-eth-tran-service:etht-svc"] does not contain key "etht-svc-instances"')