Commit 2b94d825 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Device component - NCE Driver:

- Fixed AppFlow RESTCONF POST calls
parent 4d81dc2e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ class AppFlowHandler:
                .get('qos-profile', list())
            )
            for qos_profile in qos_profiles:
                request = {'huawei-nce-app-flow:qos-profiles': {'qos-profile': qos_profile}}
                request = {'huawei-nce-app-flow:qos-profiles': {'qos-profile': [qos_profile]}}
                qos_profile_name = qos_profile['name']
                LOGGER.info('Creating QoS Profile: {:s}'.format(str(request)))
                url = self._url_qos_profile_item.format(qos_profile_name)
@@ -59,7 +59,7 @@ class AppFlowHandler:
                .get('application', list())
            )
            for application in applications:
                request = {'huawei-nce-app-flow:applications': {'application': application}}
                request = {'huawei-nce-app-flow:applications': {'application': [application]}}
                application_name = application['name']
                LOGGER.info('Creating Application: {:s}'.format(str(request)))
                url = self._url_application_item.format(application_name)
@@ -71,7 +71,7 @@ class AppFlowHandler:
                .get('app-flow', list())
            )
            for app_flow in app_flows:
                request = {'huawei-nce-app-flow:app-flows': {'app-flow': app_flow}}
                request = {'huawei-nce-app-flow:app-flows': {'app-flow': [app_flow]}}
                app_flow_name = app_flow['name']
                LOGGER.info('Creating App Flow: {:s}'.format(str(request)))
                url = self._url_app_flow_item.format(app_flow_name)