Commit 5e4f3e0b authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component IETF L3VPN/Slice/NCE Driver:

- Fixed data types of requests/replies
parent 79781190
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -425,10 +425,10 @@ class DeviceServiceServicerImpl(DeviceServiceServicer):
                    'SSETelemetrySubscribe', extra_details='Driver returned an unexpected number of responses: {:d}'.format(len(r))
                )
            sub_conf: dict = r[0]
            return SSEMonitoringSubscriptionResponse(identifier=sub_conf['identifier'], uri=sub_conf['uri'])
            return SSEMonitoringSubscriptionResponse(identifier=str(sub_conf['identifier']), uri=sub_conf['uri'])

        if config_type == SSEMonitoringSubscriptionConfig.Unsubscribe:
            r = driver.UnsubscribeState([(request.identifier, 0, 0)])
            r = driver.UnsubscribeState([(str(request.identifier), 0, 0)])
            if len(r) != 1:
                raise OperationFailedException(
                    'SSETelemetrySubscribe', extra_details='Driver returned an unexpected number of responses: {:d}'.format(len(r))
+1 −1
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ class IetfL3VpnDriver(_Driver):
        identifier = s[0]
        s_data : UnsubscribedNotificationsSchema = {
            'delete-subscription': {
                'identifier': identifier,
                'identifier': int(identifier),
            }
        }
        self._handler_subscription.unsubscribe(s_data)
+1 −1
Original line number Diff line number Diff line
@@ -227,7 +227,7 @@ class IetfSliceDriver(_Driver):
        identifier = s[0]
        s_data : UnsubscribedNotificationsSchema = {
            'delete-subscription': {
                'identifier': identifier,
                'identifier': int(identifier),
            }
        }
        self._handler_subscription.unsubscribe(s_data)
+1 −1
Original line number Diff line number Diff line
@@ -245,7 +245,7 @@ class NCEDriver(_Driver):
        identifier = s[0]
        s_data : UnsubscribedNotificationsSchema = {
            'delete-subscription': {
                'identifier': identifier,
                'identifier': int(identifier),
            }
        }
        self._handler_subscription.unsubscribe(s_data)