Repository files navigation
Extract References
Ubuntu 24.04 LTS (this is what I tested with - may work in other environments)
xmllint (sudo apt install libxml2-utils)
pyang
Only needed for ref-trim-uml.sh
Works installed in a venv, but if a venv is used make sure your venv is enabled before running the script
Script to loop over a directory of YANG files and will send all references to stdout
In this version you need to edit the shell script to update the basedir variable with a pointer to the top of the directory you want to loop over.
To invoke: "bash ref-trim-yin.sh | sort | uniq >> yin-ref.out"
Script to loop over a directory of UML files and will send all references to stdout
In this version you need to edit the shell script to update the basedir variable with a pointer to the top of the directory you want to loop over.
To invoke: "bash ref-trim-uml.sh | sort | uniq >> uml-ref.out"
Script to loop over a directory of UML files and will send all references to stdout
Temporary solution that will print all the raw information (i.e. not running the sed scripts)
In this version you need to edit the shell script to update the basedir variable with a pointer to the top of the directory you want to loop over.
To invoke: "bash ref-trim-raw-uml.sh | sort | uniq >> raw-uml-ref.out"
parameterize the basedir variable
parameterize the "raw" option
You can’t perform that action at this time.