Rename yang filename to <module>@<revision> format 03/5703/1
authordemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 27 Feb 2021 07:53:05 +0000 (08:53 +0100)
committerdemx8as6 <martin.skorupski@highstreet-technologies.com>
Sat, 27 Feb 2021 07:54:20 +0000 (08:54 +0100)
commit3bcfd6897a76af8c345891d039a8cf7af597e38a
tree7ee92b7b08132eb2b9a07cbb547b9f5a23732d31
parentde45148a9aec4652465c8c4c7723177a6059ad93
Rename yang filename to <module>@<revision> format

The O-RAN Alliance publish its yang modules with the filename format "<module>.yang".
For development purposes a filename in format "<module>@<revision>.yang" has the advantage,
that decisions by NetConf-Client and NetConf-Servers can be taken about compatibility and
API version without parsing the yang module.
This script parse the yang module for the latest revision and to rename the file accordingly.

IssueID: OAM-163
Change-Id: Ib7fd9aa0103d106947cd38f51a211a61338e66a8
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
data-model/tools/rename-by-revision.py [new file with mode: 0644]