blob: 9a185e6383842bf86f6a5b0fe7c5052ce54d476c [file] [log] [blame]
Jeremy Ronquillo223db002020-06-05 10:28:22 -07001#!/bin/bash
Jeremy Ronquilloec2d3e42020-06-05 11:33:39 -07002
Jeremy Ronquillo223db002020-06-05 10:28:22 -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 Ronquillo223db002020-06-05 10:28:22 -07006
7set -xe
8
9{{- if .Values.config.coreDump.enabled }}
10cp /bin/ngic_controlplane /tmp/coredump/
11{{- end }}
12
13mkdir -p /opt/cp/config
14cd /opt/cp/config
15
16cp /etc/cp/config/{adc_rules.cfg,cp_config.cfg,interface.cfg,meter_profile.cfg,pcc_rules.cfg,sdf_rules.cfg,app_config.cfg} .
17sed -i "s/CP_ADDR/$POD_IP/g" interface.cfg
18
Ajay Lotan Thakurb48ed2d2020-07-01 11:58:51 -070019{{- if .Values.config.spgwc.pfcp }}
20cp /etc/cp/config/{cp.cfg,subscriber_mapping.json} .
21sed -i "s/CP_ADDR/$POD_IP/g" cp.cfg
22cat /opt/cp/config/subscriber_mapping.json
23{{- end }}
24
Jeremy Ronquillo223db002020-06-05 10:28:22 -070025. cp_config.cfg
26ngic_controlplane $EAL_ARGS -- $APP_ARGS