diff options
author | Dan Timoney <dtimoney@att.com> | 2020-11-05 08:17:24 -0500 |
---|---|---|
committer | Dan Timoney <dtimoney@att.com> | 2020-11-05 09:59:56 -0500 |
commit | f991ba3852ea7a6e8ed9b76cfd90d8b04a774d03 (patch) | |
tree | 52269e5ce6f09eee255eed01739add5c2e71f5f9 /generic-resource-api/model/swagger/fixModuleUri.sh | |
parent | 6756e81243a47bbf50136733391a60f55d3a1d96 (diff) |
Removed dup module name from GRA yaml
Removed duplicate instances of module name in generated swagger
yaml for generic resource api by running a script after yang2swagger.
Change-Id: I274e01eb2c19f6945ea7eff72c15d560a80c5aba
Issue-ID: SDNC-1406
Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'generic-resource-api/model/swagger/fixModuleUri.sh')
-rwxr-xr-x | generic-resource-api/model/swagger/fixModuleUri.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/generic-resource-api/model/swagger/fixModuleUri.sh b/generic-resource-api/model/swagger/fixModuleUri.sh new file mode 100755 index 00000000..fae3872c --- /dev/null +++ b/generic-resource-api/model/swagger/fixModuleUri.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +mv $2 $2.backup +cat $2.backup | sed -e 's/'$1':/_&/1' -e 's/\([^_]\)'$1':/\//g' -e 's/_\('$1':\)/\1/' > $2 +rm $2.backup |