Yang models publish (project) - progress


Luis Gomez
 

Thanks Rohan (cc integration),

Please send me the check.sh you are using for ODL so I can take a look and see how we can automate this check in ODL. As we discussed there is no point to push models to Yang github if they do not pass basic verification.

BR/Luis


On Sep 17, 2019, at 3:06 PM, rohan julka <rohanjulka19@...> wrote:

Hi ,
I have created a script[1] which grabs the latest ODL distribution from nexus , extracts its yang modules and updates the ODL yang modules fork (for the time being updates the fork from my account[2] ) , now the next step will be to convert the script into a Jenkins Jobs using JJB. Also along with the yang modules there needs to be a script (check.sh[2]) which  will use pyang to verify that the yang modules doesn’t have any errors. The script is already present in other orgs folders so that’s not a problem , but it seems like their are errors in the ODL yang modules .
 
 
 
Regards,
Rohan


Luis Gomez
 

Hi Rohan,

I have finally got time to go through the yang module pyang check issues you mentioned. I think for now the best we can do is to collect these errors and expose them in a jenkins job so projects can take the right correction actions and we can also verify when these are taken. For that I wrote this simple script based on yours:


Please review.

BR/Luis


On Oct 9, 2019, at 9:35 AM, rohan julka <rohanjulka19@...> wrote:

Hi ,
 
I have attached the check.sh file , you will have to download this repo[1] and run inside the standard/odp folder . This check.sh referenced from the check.sh files in the main yang repo .
 
 
Regards,
Rohan
 
 
From: Luis Gomez
Sent: 09 October 2019 21:58
To: rohan julka
Cc: integration-dev@...
Subject: Re: [integration-dev] Yang models publish (project) - progress
 
Thanks Rohan (cc integration),
 
Please send me the check.sh you are using for ODL so I can take a look and see how we can automate this check in ODL. As we discussed there is no point to push models to Yang github if they do not pass basic verification.
 
BR/Luis
 


On Sep 17, 2019, at 3:06 PM, rohan julka <rohanjulka19@...> wrote:
 
Hi ,
I have created a script[1] which grabs the latest ODL distribution from nexus , extracts its yang modules and updates the ODL yang modules fork (for the time being updates the fork from my account[2] ) , now the next step will be to convert the script into a Jenkins Jobs using JJB. Also along with the yang modules there needs to be a script (check.sh[2]) which  will use pyang to verify that the yang modules doesn’t have any errors. The script is already present in other orgs folders so that’s not a problem , but it seems like their are errors in the ODL yang modules .
 
 
 
Regards,
Rohan
 
 
<check.sh>