Re: [controller-dev] Netconf with LINC switch

Luis Gomez

Hi Tony, maybe silly question but why we require IETF-Monitoring for automatic model downloading?

Madhusudhan was able to read the LINC configuration using yang-cli so why our controller cannot do the same?


On Apr 10, 2014, at 1:19 AM, Tony Tkacik -X (ttkacik - Pantheon Technologies SRO at Cisco) <ttkacik@...> wrote:

based on look of Hello from LINC which you posted before:
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
LINC switch announced capabilities only for Netconf protocol, but did not announced OF-Config, nor IETF-Monitoring.
·        IETF-Monitoring is required for ODL to automatically download models from Netconf Server, otherwise YANG models are used from cache/schema
·        OF Config announcement (and announcements of other YANG modules) provides an information that netconf server support OF-Config (it references OF-Config YANG module), this actually
Triggers Netconf Connector to look up the YANG model (be it from cache/schema or via IETF-Monitoring from Netconf Device).
So if your Netconf Server (LINC) supports OF Config and does not announces it, it is bug in LINC.
Hope, this will help with debuging.
From: controller-dev-bounces@... [mailto:controller-dev-bounces@...] On Behalf Of Gupta, Kanika
Sent: Thursday, April 10, 2014 7:55 AM
To: Kiran Agrahara Sreenivasa; Madhusudhan Kandadai
Cc: controller-dev@...
Subject: Re: [controller-dev] Netconf with LINC switch
I have observed that if you put below URL directly in browser’s address bar, it will give you get-config  output in xml form.
If you try to use postman to get output in JSON format, you will see this error “No mount point exist”. To resolve this you need to write the yang files that represent your device.
In case of LINC switch as per the hello message posted by Madhusudhan, it seems the device does support netconf monitoring and we don’t need to write any yang files. Netconf protocol plugin should download it from the device itself.
I would suggest to do some debugging in to figure out what is actually happening there. You can also enable the logs.
From: Kiran Agrahara Sreenivasa [mailto:kkoushik@...] 
Sent: Thursday, April 10, 2014 6:22 AM
To: Madhusudhan Kandadai
Cc: Gupta, Kanika
Subject: RE: [controller-dev] Netconf with LINC switch
No, just with mininet..
From: misc.madhusudhan@... [mailto:misc.madhusudhan@...] On Behalf Of Madhusudhan Kandadai
Sent: Wednesday, April 09, 2014 5:37 PM
To: Kiran Agrahara Sreenivasa
Cc: Gupta, Kanika
Subject: Re: [controller-dev] Netconf with LINC switch
Same here. I am using latest controller with OF1.3 plugin. 
Kiran: Are you using LINC switch?


On Wed, Apr 9, 2014 at 5:32 PM, Kiran Agrahara Sreenivasa <kkoushik@...> wrote:
(b) retrieve running configuration and device state configuration
Kanika: You can use below restconf url to access get-config data. It will give you output in XML format. For JSON format, you need to write YANG files that represent your device.
I am getting 404 Bad Request. And the response is "Mount point does not contain any schema with modules." BTW, what device you installed for server? I am using LINC switch which has inbuilt netconf server.
[Kiran] I’m getting the following error:
“Mount point does not exist”
I’m running the latest version of controller with OF1.3 plugin.
_______________________________________________ controller-dev mailing list controller-dev@...

Join to automatically receive all group messages.