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 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame^] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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;" |