diff --git a/README.md b/README.md index 6847c11..75db8d4 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ environment: GTPU_ENTITIES_LIST: |- - "10.0.201.5" - "10.0.215.4" + LOG_LEVEL: "info" ``` #### Routing diff --git a/upf/Dockerfile b/upf/Dockerfile index f79fb4c..f144015 100644 --- a/upf/Dockerfile +++ b/upf/Dockerfile @@ -4,7 +4,7 @@ # SPDX-License-Identifier: MIT FROM golang:1.22 AS builder -ARG COMMIT=v0.0.8 +ARG COMMIT=v0.0.9 RUN : ${COMMIT:? Missing build-arg COMMIT.} && go install github.com/nextmn/upf@${COMMIT} diff --git a/upf/template-script.sh b/upf/template-script.sh index 142036e..e1efe17 100755 --- a/upf/template-script.sh +++ b/upf/template-script.sh @@ -36,10 +36,12 @@ for INTERFACE in ${IF_LIST}; do done awk \ + -v LOG_LEVEL="${LOG_LEVEL:-info}" \ -v N4="${N4}" \ -v DNN_LIST="${DNN_LIST_SUB}" \ -v IF_LIST="${IF_LIST_SUB}" \ '{ + sub(/%LOG_LEVEL/, LOG_LEVEL); sub(/%N4/, N4); sub(/%DNN_LIST/, DNN_LIST); sub(/%IF_LIST/, IF_LIST); diff --git a/upf/template-upf.yaml b/upf/template-upf.yaml index 077cdbe..1eb5dce 100644 --- a/upf/template-upf.yaml +++ b/upf/template-upf.yaml @@ -8,3 +8,5 @@ gtpu: tunInterfaceName: upf ifList: %IF_LIST dnnList: %DNN_LIST +logger: + level: "%LOG_LEVEL"