Ask Your Question
0

Revision date in Yang filenames

asked 2016-09-29 06:37:49 -0700

RomanKnet gravatar image

updated 2016-10-03 00:58:03 -0700

Filenames in the ODL's folder cache/schema/ include revision date. For example, Cisco-IOS-XR-mpls-te-cfg@2015-11-09.yang.

Yang models from other sources, for example Cisco IOS XR ones - https://github.com/YangModels/yang/tree/master/vendor/cisco/xr/611, have no revision date in the filename. For example, Cisco-IOS-XR-mpls-te-cfg.yang.

Do I need to add revision date to a filename when importing to ODL cache/schema folder? If yes, is there any tool to extract revision date from a file itself and put it into the filename?

Are there any other actions needed to make ODL understand imported yang files?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-14 05:47:24 -0700

Hello,

Do I need to add revision date to a filename when importing to ODL cache/schema folder? If yes, is there any tool to extract revision date from a file itself and put it into the filename?

Yes, you have to add the revision date in the filename if you add a schema in the cache/schema folder. I don't know any tool to extract the revision date and rename the file, but I believe this can be done using a small python script.

Are there any other actions needed to make ODL understand imported yang files?

As long as the YANG model is compliant with the RFC6020, ODL should be able to load it and have it as an available capability.

Hope this helps, Alexis

edit flag offensive delete publish link more

Comments

Hi Alexis, how do you check that ODL has successfully loaded a YANG model and has it as an available capability? Should the model show up in YangMan or YangUI?

jmrenshaw ( 2016-10-17 03:52:34 -0700 )edit

If you're trying to mount a NETCONF device that doesn't provide/advertise all its capabilities, you need to provide the yang-module-capabilities in the payload sent to mount the device along with adding them in the cache/schema repository.

Install those features: feature:install odl-netconf-topology odl-restconf-all

Here is an example of the request to send: https://gist.github.com/anonymous/c02d162eab8ade0ede1b4389f4adaa92 Make sure to replace the information in the payload with your own.

If this is not what you're after, please explain what you're trying to achieve.

Thanks, Alexis

adetalhouet ( 2016-10-17 17:30:25 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-09-29 06:37:49 -0700

Seen: 605 times

Last updated: Oct 14 '16