blob: 933ca57e02fc86d4eb03b8eaec37aa4d6913b002 [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
19. cp_config.cfg
20ngic_controlplane $EAL_ARGS -- $APP_ARGS