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