aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
diff options
context:
space:
mode:
authorRehanRaza <muhammad.rehan.raza@est.tech>2019-04-04 12:42:15 +0000
committerRehanRaza <muhammad.rehan.raza@est.tech>2019-04-04 12:42:15 +0000
commitc5121c5bc5c544eb7be9432913f9099574270cbe (patch)
tree964022db49256cb5b2c7b6987e9ff9b55cd3aebc /test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
parentb688e6267a5f3557af5ed366d4eee83ab884a854 (diff)
Fix VES event fields
* timeZoneOffset uses default system timezone * sourceName and reportingEntityName use the nodename of pnf-sim instance Change-Id: Idf7f0b8d4a02cb533e81bdf69d5034cd842c3fb8 Issue-ID: DCAEGEN2-1225 Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
Diffstat (limited to 'test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh')
-rwxr-xr-xtest/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
index 4c5d9f062..6ba707973 100755
--- a/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
+++ b/test/mocks/mass-pnf-sim/pnf-sim-lightweight/simulator.sh
@@ -74,6 +74,8 @@ function compose(){
export PORTFTPS=$8
export IPFTPS=$9
export IPSFTP=${10}
+ LOCALTIME=$(ls -l /etc/localtime)
+ export TIMEZONE=${LOCALTIME//*zoneinfo\/}
#will insert $I to distinguish containers, networks properly
#docker compose cannot substitute these, as they are keys, not values.