aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/src
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-09-20 15:22:02 -0400
committerDan Timoney <dtimoney@att.com>2017-09-20 15:22:02 -0400
commite028d9dc9d4283b0a8cb3dcbd902864ba5cab05d (patch)
treef09a7536fe4b3991caf720794cfb2a5662da7aec /platform-logic/src
parente86e05b78cf444e4020ffd310b9519730891e128 (diff)
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 <dtimoney@att.com> Former-commit-id: 51970f69236c65abee61f0099c8137c01e9fe26d
Diffstat (limited to 'platform-logic/src')
-rwxr-xr-xplatform-logic/src/main/scripts/updateDgNamespace.sh13
1 files changed, 13 insertions, 0 deletions
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