Use advertised address in SGU (NSA deployments)

This commit is contained in:
herlesupreeth
2021-01-06 07:29:25 +01:00
parent 005bff31d2
commit 7e4837a703
2 changed files with 2 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ parameter:
sgwu:
gtpu:
- addr: SGWU_IP
advertise_addr: SGWU_ADVERTISE_IP
pfcp:
- addr: SGWU_IP

View File

@@ -31,7 +31,7 @@ export IF_NAME=$(ip r | awk '/default/ { print $5 }')
cp /mnt/sgwu/sgwu.yaml install/etc/open5gs
sed -i 's|SGWU_IP|'$SGWU_IP'|g' install/etc/open5gs/sgwu.yaml
sed -i 's|SGWC_IP|'$SGWC_IP'|g' install/etc/open5gs/sgwu.yaml
sed -i 's|DOCKER_HOST_IP|'$DOCKER_HOST_IP'|g' install/etc/open5gs/sgwu.yaml
sed -i 's|SGWU_ADVERTISE_IP|'$SGWU_ADVERTISE_IP'|g' install/etc/open5gs/sgwu.yaml
# Sync docker time
#ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone