blob: 40f0f1b9da29365a40f215881bfdc3cc6de6c635 [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 Ronquillo6046ce32020-06-18 11:06:29 -07005# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.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;"