blob: b39bb56c0e65abf07c7b4106d9de443b783a379e [file] [log] [blame]
Badhrinath Pa3a3088a2020-07-28 18:37:16 -07001#!/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
9set -ex
10
11{{- if .Values.config.coreDump.enabled }}
12cp /bin/ngic_dataplane /tmp/coredump/
13{{- end }}
14
15mkdir -p /opt/dp/config
16cd /opt/dp/config
17cp /etc/dp/config/{cdr.cfg,dp_config.cfg,interface.cfg} .
18
19sed -i "s/DP_ADDR/$POD_IP/g" interface.cfg
20
21source dp_config.cfg
22ngic_dataplane $EAL_ARGS -- $APP_ARGS