Loading src/device/service/drivers/nce/handlers/AppFlowHandler.py +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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) Loading @@ -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) Loading Loading
src/device/service/drivers/nce/handlers/AppFlowHandler.py +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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) Loading @@ -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) Loading