Add static routes instead of changing rp_filter
- remove the shell options '-e', script should not stop if it can't
access the TOST.
Change-Id: I15fc03229dc16bc3f484d5221701fb34f9eb6781
diff --git a/apps/dbuf/templates/configmap-config.yaml b/apps/dbuf/templates/configmap-config.yaml
index 2df6d11..e41a9ae 100644
--- a/apps/dbuf/templates/configmap-config.yaml
+++ b/apps/dbuf/templates/configmap-config.yaml
@@ -11,10 +11,15 @@
labels:
{{- include "dbuf.labels" . | nindent 4 }}
data:
- push-onos: |
+ config: |
#!/bin/sh
- set -e -x
+ set -x
env
+ export IFS=','
+ for r in $STATIC_ROUTES; do
+ ip route add $r dev $DP_INTERFACE
+ done
+ unset IFS
ifconfig
while true
do