blob: bdd2eba8c3c6d0f5aba8cdae456ff9e4943f1cf8 [file] [log] [blame]
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07001#!/bin/bash
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07003# Copyright 2019-present Open Networking Foundation
4#
Scott Baker4cad5ee2022-06-09 14:17:35 -07005# SPDX-License-Identifier: Apache-2.0
Jeremy Ronquillo11851d32020-06-08 15:13:08 -07006
7# Assume that SGI network gateway knows routes to UE pool
8{{- if .Values.config.sriov.enabled }}
9ip route add {{ .Values.networks.ue.subnet }} via {{ .Values.networks.sgi.gateway }}
10{{- end }}
11
12ip link set {{ .Values.config.nginx.sgiInterface.name }} mtu {{ .Values.config.nginx.sgiInterface.mtu }}
13
14cp /conf/nginx.conf /etc/nginx/
15nginx -g "daemon off;"