If new RFC is introduced we are informed by an email, and it is necessary to manually extract module from RFC document and create PR to YangModels/yang repo.
This can be done automatically as we are already making automatic PRs to this repo.
Name of the new script: rfc_push.py
Directory: automatic_push
These are steps to do it manually which should be transferred into script:
If new RFC is introduced we are informed by an email, and it is necessary to manually extract module from RFC document and create PR to YangModels/yang repo. This can be done automatically as we are already making automatic PRs to this repo. Name of the new script: rfc_push.py Directory: automatic_push These are steps to do it manually which should be transferred into script:
Install latest xym tool version locally
pip install --upgrade xym
Search RFC document by module name
Run following command to extract the modules
xym https://datatracker.ietf.org/doc/html/rfcXXXX
Fork YangModels/yang repo to yourself and then clone forked repository
Copy extracted .yang files to cloned repo - into folder yang/standard/ietf/RFC
Create symlink for each extracted yang module
ln -s <src> <dst>
ln -s ietf-l2-topology@2020-11-15.yang ietf-l2-topology.yang
Create commit with message and push:
Commit message: Add new IETF RFC file
Push changes to the yang-catalog/yang