Badhrinath Pa | 3a3088a | 2020-07-28 18:37:16 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2019 Intel Corporation |
| 4 | # Copyright 2019-present Open Networking Foundation |
| 5 | # |
| 6 | # SPDX-License-Identifier: Apache-2.0 |
| 7 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 8 | |
| 9 | set -ex |
| 10 | |
| 11 | {{- if .Values.config.coreDump.enabled }} |
| 12 | cp /bin/ngic_dataplane /tmp/coredump/ |
| 13 | {{- end }} |
| 14 | |
| 15 | mkdir -p /opt/dp/config |
| 16 | cd /opt/dp/config |
| 17 | cp /etc/dp/config/{cdr.cfg,dp_config.cfg,interface.cfg} . |
| 18 | |
| 19 | sed -i "s/DP_ADDR/$POD_IP/g" interface.cfg |
| 20 | |
| 21 | source dp_config.cfg |
| 22 | ngic_dataplane $EAL_ARGS -- $APP_ARGS |