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 | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame^] | 5 | # SPDX-License-Identifier: Apache-2.0 |
| 6 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only |
Jeremy Ronquillo | 11851d3 | 2020-06-08 15:13:08 -0700 | [diff] [blame] | 7 | |
| 8 | # Assume that SGI network gateway knows routes to UE pool |
| 9 | {{- if .Values.config.sriov.enabled }} |
| 10 | ip route add {{ .Values.networks.ue.subnet }} via {{ .Values.networks.sgi.gateway }} |
| 11 | {{- end }} |
| 12 | |
| 13 | ip link set {{ .Values.config.nginx.sgiInterface.name }} mtu {{ .Values.config.nginx.sgiInterface.mtu }} |
| 14 | |
| 15 | cp /conf/nginx.conf /etc/nginx/ |
| 16 | nginx -g "daemon off;" |