blob: 955426673ea6a188278a0609c349a006269e8fb2 [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 Ronquilloec2d3e42020-06-05 11:33:39 -07005# SPDX-License-Identifier: Apache-2.0
6# SPDX-License-Identifier: LicenseRef-ONF-Member-Only
Jeremy Ronquillo223db002020-06-05 10:28:22 -07007
8set -xe
9
10{{- if .Values.config.coreDump.enabled }}
11cp /bin/ngic_controlplane /tmp/coredump/
12{{- end }}
13
14mkdir -p /opt/cp/config
15cd /opt/cp/config
16
17cp /etc/cp/config/{adc_rules.cfg,cp_config.cfg,interface.cfg,meter_profile.cfg,pcc_rules.cfg,sdf_rules.cfg,app_config.cfg} .
18sed -i "s/CP_ADDR/$POD_IP/g" interface.cfg
19
20. cp_config.cfg
21ngic_controlplane $EAL_ARGS -- $APP_ARGS