blob: bc5db92fef7dbf1977985d925c5a6889d9a83c29 [file] [log] [blame]
badhri854c028b32021-11-03 18:24:05 -05001#!/bin/sh
2
3# Copyright 2020-present Open Networking Foundation
4#
Ajay Lotan Thakur03189d22022-02-10 14:06:03 -06005# SPDX-License-Identifier: Apache-2.0
badhri854c028b32021-11-03 18:24:05 -05006
7set -xe
8
9{{- if .Values.config.coreDump.enabled }}
Ajay Lotan Thakur4ebd7e82022-01-14 09:11:42 -070010cp /gnbsim/bin/gnbsim /tmp/coredump/
badhri854c028b32021-11-03 18:24:05 -050011{{- end }}
12
Ajay Lotan Thakur4ebd7e82022-01-14 09:11:42 -070013cd /gnbsim
badhri854c028b32021-11-03 18:24:05 -050014cat ./config/gnb.conf
15cat /etc/hosts
Ajay Lotan Thakur0203c3b2022-03-21 13:40:11 -060016
17{{- if not .Values.config.gnbsim.singleInterface }}
18{{- range .Values.config.gnbsim.networkTopo }}
19ip route add {{ .upfAddr }} via {{ .upfGw }}
20{{- end }}
21
badhri854c028b32021-11-03 18:24:05 -050022# Disabling checksum offloading to hardware
23ethtool -K enb tx off
Ajay Lotan Thakur0203c3b2022-03-21 13:40:11 -060024{{- end }}
badhri854c028b32021-11-03 18:24:05 -050025sleep infinity