Skip to content

Commit

Permalink
Add examples & fix Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
louisroyer committed Jan 25, 2024
1 parent 0e26613 commit c08807b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ environment:
Environment variables for templating:
```yaml
environment:
N4: "203.0.113.2"
```

#### Routing
Expand All @@ -53,7 +54,45 @@ environment:
Environment variables for templating:
```yaml
environment:
N4: "203.0.113.2"
DEBUG: "false"
HOOKS: |-
pre-init-hook: pre-init-hook.sh
post-init-hook: post-init-hook.sh
pre-exit-hook: pre-exit-hook.sh
post-exit-hook: post-exit-hook.sh
LOCATOR: "fd00:51D5:0000:1::/64"
HEADENDS: |-
- name: "gtp4 to sr"
to: "10.0.200.3/32"
provider: "NextMN"
behavior: "H.M.GTP4.D"
policy:
- match:
teid: 0x0001
bsid:
bsid-prefix: "fd00:51D5:000:2::/80"
segments-list:
- "fd00:51D5:0000:3::"
- "fd00:51D5:0000:4::"
source-address-prefix: "fd00:51D5:000:1:9999::/80"
- name: "linux test"
to: "10.0.300.0/24"
provider: "Linux"
behavior: "H.Encaps"
policy:
- bsid:
segments-list:
- "fd00:51D5:0000:2::"
- "fd00:51D5:0000:3::"
ENDPOINTS: |-
- prefix: "fd00:51D5:0000:1:11::/80"
behavior: "End.DX4"
provider: "Linux"
- prefix: "fd00:51D5:0000:1:1::/80"
behavior: "End"
provider: "Linux"
LINUX-HEADEND-SET-SOURCE-ADDRESS: fd00:51D5:0000::
IPV4-HEADEND-PREFIX: 10.0.200.3/32
```

#### Container deployment
Expand Down
2 changes: 1 addition & 1 deletion srv6-ctrl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ENV ROUTING_SCRIPT="docker-setup" \
TEMPLATE_SCRIPT="template-script.sh" \
TEMPLATE_SCRIPT_ARGS="" \
CONFIG_FILE="/etc/nextmn/srv6-ctrl.yaml" \
CONFIG_TEMPLATE="/usr/local/share/nextmn/srv6-ctrl.yaml" \
CONFIG_TEMPLATE="/usr/local/share/nextmn/srv6-ctrl.yaml"

ENTRYPOINT ["entrypoint.sh"]
CMD ["--help"]
2 changes: 1 addition & 1 deletion srv6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY ./template-srv6.yaml /usr/local/share/nextmn/
ENV TEMPLATE_SCRIPT="template-script.sh" \
TEMPLATE_SCRIPT_ARGS="" \
CONFIG_FILE="/etc/nextmn/srv6-ctrl.yaml" \
CONFIG_TEMPLATE="/usr/local/share/nextmn/srv6-ctrl.yaml" \
CONFIG_TEMPLATE="/usr/local/share/nextmn/srv6-ctrl.yaml"

ENTRYPOINT ["entrypoint.sh"]
CMD ["--help"]

0 comments on commit c08807b

Please sign in to comment.