Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jeremy Ronquillo | ec2d3e4 | 2020-06-05 11:33:39 -0700 | [diff] [blame] | 2 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 3 | # Copyright 2019-present Open Networking Foundation |
| 4 | # |
Jeremy Ronquillo | 6046ce3 | 2020-06-18 11:06:29 -0700 | [diff] [blame] | 5 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 6 | |
| 7 | set -xe |
| 8 | |
| 9 | {{- if .Values.config.coreDump.enabled }} |
| 10 | cp /bin/ngic_controlplane /tmp/coredump/ |
| 11 | {{- end }} |
| 12 | |
| 13 | mkdir -p /opt/cp/config |
| 14 | cd /opt/cp/config |
| 15 | |
| 16 | cp /etc/cp/config/{adc_rules.cfg,cp_config.cfg,interface.cfg,meter_profile.cfg,pcc_rules.cfg,sdf_rules.cfg,app_config.cfg} . |
| 17 | sed -i "s/CP_ADDR/$POD_IP/g" interface.cfg |
| 18 | |
Ajay Lotan Thakur | b48ed2d | 2020-07-01 11:58:51 -0700 | [diff] [blame] | 19 | {{- if .Values.config.spgwc.pfcp }} |
| 20 | cp /etc/cp/config/{cp.cfg,subscriber_mapping.json} . |
| 21 | sed -i "s/CP_ADDR/$POD_IP/g" cp.cfg |
| 22 | cat /opt/cp/config/subscriber_mapping.json |
| 23 | {{- end }} |
| 24 | |
Jeremy Ronquillo | 223db00 | 2020-06-05 10:28:22 -0700 | [diff] [blame] | 25 | . cp_config.cfg |
| 26 | ngic_controlplane $EAL_ARGS -- $APP_ARGS |