Skip to content

Commit

Permalink
Update UPF
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Sep 5, 2024
1 parent 3e82b45 commit 40ea275
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ environment:
GTPU_ENTITIES_LIST: |-
- "10.0.201.5"
- "10.0.215.4"
LOG_LEVEL: "info"
```
#### Routing
Expand Down
2 changes: 1 addition & 1 deletion upf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}


Expand Down
2 changes: 2 additions & 0 deletions upf/template-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions upf/template-upf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ gtpu:
tunInterfaceName: upf
ifList: %IF_LIST
dnnList: %DNN_LIST
logger:
level: "%LOG_LEVEL"

0 comments on commit 40ea275

Please sign in to comment.