1. Fetch the latest yang model from 3gpp (Management and Orchestration APIs repository)
Model file is located at: e.g., https://forge.3gpp.org/rep/sa5/MnS/-/tree/Rel-18/yang-models
2. install prerequisites
$ pip install pyang iplantuml
download plantuml ( https://github.com/plantuml/plantuml/releases/download/v1.2024.5/plantuml-1.2024.5.jar )
3. Open a jupyter notebook and transform yang model to plantuml (e.g., RRMPolicy from 3gpp TS 28.541)
%env YANG_MODPATH C:/temp/MnS-Rel-18-yang-models/yang-models
!pyang -f uml "C:\temp\MnS-Rel-18-yang-models\yang-models\_3gpp-nr-nrm-rrmpolicy.yang" > "c:/temp/test.puml"
4. Run jupyter magic command
%%plantuml -p plantuml-1.2024.5.jar
@startuml
!include c:/temp/test.puml
@enduml
'Script' 카테고리의 다른 글
Dump Zotero files with folder/file structures restored (zotero2papis) (0) | 2024.05.29 |
---|---|
Fetch Zotero collection items recursively with pagination (C#) (0) | 2024.05.26 |
Dump Chrome LocalDB contents with python (0) | 2024.04.09 |