Exchange of Yang models between Netconf Server and Client

asked 2016-07-11 13:43:06 -0700

ahuja gravatar image

updated 2016-07-12 06:53:41 -0700

Hi,

I have two VMs. One is running ODL and the other is Netconf Server. I have my own yang model in the Netconf Server. I see that during Hello message exchange only capabilities are exchanged and not the actual yang models which are there in the server.

log after connecting the Netconf device:

> 11-Jul-2016::14:21:58.358 **< sess:11
> write: <hello
> xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
> <capabilities>
>     <capability>urn:ietf:params:netconf:base:1.0</capability>
>     <capability>urn:ietf:params:netconf:base:1.1</capability>
>     <capability>urn:ietf:params:netconf:capability:writable-running:1.0</capability>
>     <capability>urn:ietf:params:netconf:capability:xpath:1.0</capability>
>     <capability>urn:ietf:params:netconf:capability:validate:1.0</capability>
>     <capability>urn:ietf:params:netconf:capability:validate:1.1</capability>
>     <capability>urn:ietf:params:netconf:capability:rollback-on-error:1.0</capability>
>     <capability>http://tail-f.com/ns/netconf/actions/1.0</capability>
>     <capability>http://tail-f.com/ns/netconf/extensions</capability>
>     <capability>urn:ietf:params:netconf:capability:with-defaults:1.0?basic-mode=explicit&also-supported=report-all-tagged</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults?revision=2011-06-01&module=ietf-netconf-with-defaults</capability>
>     <capability>http://tail-f.com/ns/aaa/1.1?module=tailf-aaa&revision=2015-06-16</capability>
>     <capability>http://tail-f.com/ns/example/smp?module=smp</capability>
>     <capability>http://tail-f.com/ns/webui?module=tailf-webui&revision=2013-03-07</capability>
>     <capability>http://tail-f.com/yang/acm?module=tailf-acm&revision=2013-03-07</capability>
>     <capability>http://tail-f.com/yang/common-monitoring?module=tailf-common-monitoring&revision=2013-06-14</capability>
>     <capability>http://tail-f.com/yang/confd-monitoring?module=tailf-confd-monitoring&revision=2013-06-14</capability>
>     <capability>http://tail-f.com/yang/netconf-monitoring?module=tailf-netconf-monitoring&revision=2014-11-13</capability>
>     <capability>urn:ietf:params:xml:ns:yang:iana-crypt-hash?module=iana-crypt-hash&revision=2014-04-04&features=crypt-hash-sha-512,crypt-hash-sha-256,crypt-hash-md5</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-inet-types?module=ietf-inet-types&revision=2013-07-15</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-acm?module=ietf-netconf-acm&revision=2012-02-22</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?module=ietf-netconf-monitoring&revision=2010-10-04</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-netconf-notifications?module=ietf-netconf-notifications&revision=2012-02-06</capability>
>     <capability>urn:ietf:params:xml:ns:yang:ietf-yang-types?module=ietf-yang-types&revision=2013-07-15</capability>
> </capabilities>  
> <session-id>11</session-id> </hello>
> 
> 11-Jul-2016::14:21:58.363 **> sess:11
> read: <hello
> xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
> <capabilities>
>     <capability>urn:ietf:params:netconf:capability:exi:1.0</capability>
>     <capability>urn:ietf:params:netconf:base:1.1</capability>
>     <capability>urn:ietf:params:netconf:base:1.0</capability>
> </capabilities> </hello>
> 
> ]]>]]>
> #340 <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
> message-id="m-0">   <get>
>     <filter ns0:type="subtree" xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0">
>       <netconf-state xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
>         <schemas/>
>       </netconf-state>
>     </filter>   </get> </rpc>
> 
> 11-Jul-2016::14:21:58.396 **< sess:11
> write: <rpc-reply message-id="m-0"
> xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
> <data/> </rpc-reply>
> 
> 
> ##
> 
> #271 <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"
> message-id="m-0">   <get-config>
>     <source>
>       <running/>
>     </source>
>     <filter ns0:type="subtree" xmlns:ns0="urn:ietf:params:xml:ns:netconf:base ...
(more)
edit retag flag offensive close merge delete