Ask Your Question
0

"ietf-netconf-monitoring" dependency upon "ietf-yang-types"

asked 2016-02-15 23:48:07 -0700

bhavesh07 gravatar image

Hi Folks,

I need your help on the visibility of "ietf-netconf-monitoring" with "ietf-yang-types". "ietf-netconf-monitoring" imports "ietf-yang-types" of revision "2010-09-24" whereas the latest revision of "ietf-yang-types" is revision "2013-07-15".

The latest revision also incorporates all the older functionality along with the newly added, then why aren't we using the latest revision ?

Please help me on this.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-03-10 23:28:21 -0700

bhavesh07 gravatar image

As the ietf-netconf-monitoring includes a specific revision like- import ietf-yang-types revision"2010-09-24", then imports the specified revision. But, if we do not specify any revision then it works with the latest revision as well.

edit flag offensive delete publish link more
-1

answered 2016-02-16 12:23:25 -0700

saisujithreddy gravatar image

Opendaylight MD-SAL is using the latest revision too.

Please refer here:-

Model was introduced in Beryllium with following Maven coordinates:

<groupId>org.opendaylight.mdsal.model</groupId>
<artifactId>ietf-yang-types-20130715</artifactId>
<version>2013.07.15.8-SNAPSHOT</version>

https://github.com/opendaylight/mdsal...

edit flag offensive delete publish link more

Comments

@saisujithreddy...That is there. But if I debug through the karaf log, "ietf-netconf-monitoring" still imports "ietf-yang-types@revision 2010-09-24". Whereas the "revision 2013-07-15" is the latest revision of "ietf-yang-types", then why not the latest one ?

bhavesh07 ( 2016-02-18 03:29:33 -0700 )edit

@bhavesh07 If the yang file contains two different revisions then it imports both of them. Please refer to the yang file. Please point to yang file in github for any further questions. Hope that helps.

saisujithreddy ( 2016-02-18 14:00:37 -0700 )edit

@saisujithreddy Thanks for your response. As I can see from the karaf log, "ietf-netconf-monitoring" tries to import the older revision(2010-09-24) of "ietf-yang-types" only. I tried to specifically import the latest revision(2013-07-15), which results in compilation failure.

bhavesh07 ( 2016-02-18 21:49:13 -0700 )edit

@saisujithreddy karaf.log : SourceIdentifier [name=ietf-netconf-monitoring@2010-10-04]=[ModuleImportImpl [name=ietf-yang-types, revision=2010-09-24], ModuleImportImpl [name=ietf-inet-types, revision=2010-09-24]]

bhavesh07 ( 2016-02-18 21:49:33 -0700 )edit

@bhavesh07 did you try adding maven coordinates in pom.xml ?

saisujithreddy ( 2016-02-18 22:04:32 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-02-15 23:48:07 -0700

Seen: 135 times

Last updated: Mar 10 '16