Commit 8ce6c924 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - L3VPN Driver:

- Fixed underlying controller id retrieval
parent 7201adf6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -86,7 +86,10 @@ class TfsApiClient(RestApiClient):
            device_type : str = json_device['device_type']
            #if not device_type.startswith('emu-'): device_type = 'emu-' + device_type
            device_status = json_device['device_operational_status']
            ctrl_uuid : str = json_device['controller_id']['device_uuid']['uuid']

            ctrl_id : Dict[str, Dict] = json_device.get('controller_id', dict())
            ctrl_uuid : Optional[str] = ctrl_id.get('device_uuid', dict()).get('uuid')

            device_url = '/devices/device[{:s}]'.format(device_uuid)
            device_data = {
                'uuid': json_device['device_id']['device_uuid']['uuid'],