Skip to content

Commit

Permalink
Update srv6 to v0.0.14 & srv6-ctrl to v0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Sep 4, 2024
1 parent e7783ff commit 7a76465
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ environment:
N4: "203.0.113.2"
HTTP_ADDRESS: "192.0.2.2"
HTTP_PORT: "8080"
DEBUG: "false"
LOG_LEVEL: "info"
```
#### Routing
Expand Down
2 changes: 1 addition & 1 deletion srv6-ctrl/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.7
ARG COMMIT=v0.0.8
RUN : ${COMMIT:? Missing build-arg COMMIT.} && go install github.com/nextmn/srv6-ctrl@${COMMIT}


Expand Down
4 changes: 2 additions & 2 deletions srv6-ctrl/template-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ if [ -z "$HTTP_ADDRESS" ]; then
fi

awk \
-v DEBUG="${DEBUG:-false}" \
-v LOG_LEVEL="${LOG_LEVEL:-info}" \
-v N4="${N4}" \
-v HTTP_ADDRESS="${HTTP_ADDRESS}" \
-v HTTP_PORT="${HTTP_PORT:-80}" \
'{
sub(/%DEBUG/, DEBUG);
sub(/%LOG_LEVEL/, LOG_LEVEL);
sub(/%HTTP_ADDRESS/, HTTP_ADDRESS);
sub(/%HTTP_PORT/, HTTP_PORT);
sub(/%N4/, N4);
Expand Down
3 changes: 2 additions & 1 deletion srv6-ctrl/template-srv6-ctrl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pfcp-address: "%N4"
http-address: "%HTTP_ADDRESS"
http-port: "%HTTP_PORT"
debug: %DEBUG
logger:
level: "%LOG_LEVEL"
2 changes: 1 addition & 1 deletion srv6/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.13
ARG COMMIT=v0.0.14
RUN : ${COMMIT:? Missing build-arg COMMIT.} && go install github.com/nextmn/srv6@${COMMIT} \
&& find /go/pkg/mod/github.com/nextmn -iname 'srv6@*' -type d -exec ln -s {} /configuration \;

Expand Down

0 comments on commit 7a76465

Please sign in to comment.