Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
Scott Baker | 4cad5ee | 2022-06-09 14:17:35 -0700 | [diff] [blame^] | 5 | # SPDX-License-Identifier: Apache-2.0 |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 6 | |
| 7 | # Assume that SGI network gateway knows routes to UE pool |
| 8 | {{- if .Values.config.sriov.enabled }} |
| 9 | ip route add {{ .Values.networks.ue.subnet }} via {{ .Values.networks.sgi.gateway }} |
| 10 | {{- end }} |
| 11 | |
| 12 | ip link set {{ .Values.config.nginx.sgiInterface.name }} mtu {{ .Values.config.nginx.sgiInterface.mtu }} |
| 13 | |
| 14 | cp /conf/nginx.conf /etc/nginx/ |
| 15 | nginx -g "daemon off;" |