From e028d9dc9d4283b0a8cb3dcbd902864ba5cab05d Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Wed, 20 Sep 2017 15:22:02 -0400 Subject: Update DG namepaces Added script src/main/scripts/updateDgNamespace.sh to update namespace references in DG XML files, and used that script to update all DG XMLs. Change-Id: I6ce75fcb5e1edee421560f6d539a7f0921fdf22a Issue-ID: SDNC-95 Signed-off-by: Dan Timoney Former-commit-id: 51970f69236c65abee61f0099c8137c01e9fe26d --- platform-logic/src/main/scripts/updateDgNamespace.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 platform-logic/src/main/scripts/updateDgNamespace.sh (limited to 'platform-logic/src/main') diff --git a/platform-logic/src/main/scripts/updateDgNamespace.sh b/platform-logic/src/main/scripts/updateDgNamespace.sh new file mode 100755 index 00000000..cb93c6be --- /dev/null +++ b/platform-logic/src/main/scripts/updateDgNamespace.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +updateFile() { +sed -i .orig -e ' +s/\(xmlns=.\)http:\/\/www\.onap\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g +s/\(xsi:schemaLocation=.\)http:\/\/www\.openecomp\.org\/sdnctl\/svclogic/\1http:\/\/www\.onap\.org\/sdnc\/svclogic/g +' $1 +} + +for file in $@ +do + updateFile $file +done -- cgit 1.2.3-korg