# ============LICENSE_START===============================================
# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
FROM python:3.8-slim-buster
-RUN pip install connexion[swagger-ui]
+RUN pip3 install "connexion[swagger-ui,flask,uvicorn]"
#install nginx and curl
RUN apt-get update && apt-get install -y nginx=1.14.* nginx-extras curl
# ============LICENSE_START===============================================
# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
app.add_api('EXT_SRV_api.yaml')
if __name__ == '__main__':
- app.run(port=port_number, host="127.0.0.1", threaded=False)
+ app.run(port=port_number, host="127.0.0.1")
# ============LICENSE_START===============================================
# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
return r
res = list(a1_policy_instances)
- return (res, 200)
+ return Response(json.dumps(res), 200, mimetype=APPL_JSON)
# API Function: Get A1 policy
def get_a1_policy(a1policyId):
# ============LICENSE_START===============================================
# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
FROM python:3.8-slim-buster
-RUN pip install connexion[swagger-ui]
-RUN pip install kafka-python
+RUN pip3 install "connexion[swagger-ui,flask,uvicorn]"
+RUN pip3 install kafka-python
#install nginx and curl
RUN apt-get update && apt-get install -y nginx=1.14.* nginx-extras curl
# ============LICENSE_START===============================================
# Copyright (C) 2022 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
app.add_api('KAFKA_DISPATCHER_api.yaml')
if __name__ == '__main__':
- app.run(port=port_number, host="127.0.0.1", threaded=False)
+ app.run(port=port_number, host="127.0.0.1")