YangModels / yang

YANG modules from standards organizations such as the IETF, The IEEE, The Metro Ethernet Forum, open source such as Open Daylight or vendor specific modules
1.5k stars 1.19k forks source link

Automatically synchronize the latest YANG models from OpenDaylight to this repo #556

Open vorburger opened 5 years ago

vorburger commented 5 years ago

In https://github.com/YangModels/yang/issues/554, @bclaise suggested:

posting the latest YANG modules

This isn't something I should manually clobber together once, but which should be automated... at the very least scripted so that anyone can do it manually, at best running nightly in a CI/CD somewhere.

I remember having seen emails with subject "Publishing ODL models to github" about this last year on the ODL TSC mailing list, but looks like it hasn't actually happened:

vorburger commented 5 years ago

at the very least scripted so that anyone can do it manually

Have you guys heard the one about... how many engineers does it take to copy a few files from one place to another? Answer A: 'bout ~10 of 'em and 5 months? Answer B: One and 1h to figure out some bash foo ... :smile: See #557 for a proposed sync.sh, and #558 for the result of running that.

at best running nightly in a CI/CD somewhere.

This ^^^ 2nd part is still open so far, of course. Anyone wants to finish this up?

einarnn commented 5 years ago

Happy to facilitate automate syncing of public ODL models, per the discussion we had with the ODL team last year, as you referred to.

ecelgp commented 5 years ago

FYI I have submitted one ODL internship project to finish this work (https://wiki.opendaylight.org/view/Interns/Projects#Yang_Models_Publish). @vorburger or @einarnn , can any of you please summarize what is missing here? Also, can the sync script run in ODL project itself so we can set the trigger to our wish?

vorburger commented 5 years ago

please summarize what is missing here?

just finish up #557 & #558 AFAIK.

Also, can the sync script run in ODL project itself

Sure, if you get a token from this project to push to it.

FTR: I am unfortunately currently no longer actively involved with this community, and am unlikely to be able to comment further - best of luck!

ecelgp commented 5 years ago

Thanks @vorburger, this info should be enough to get us going :)