blob: c4ed0b12d218e5a61f1ed27ca5144ba50dec7823 [file] [log] [blame]
#!/bin/sh
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
set -xe
{{- if .Values.config.coreDump.enabled }}
cp /gnbsim/bin/gnbsim /tmp/coredump/
{{- end }}
cd /gnbsim
cat ./config/gnb.conf
cat /etc/hosts
{{- define "gnbiplist" -}}
{{- join "," .Values.config.gnbsim.gnb.ips }}
{{- end -}}
{{- if not .Values.config.gnbsim.singleInterface }}
{{- range .Values.config.gnbsim.networkTopo }}
ip route replace {{ .upfAddr }} via {{ .upfGw }}
{{- end }}
{{- end }}
sleep infinity