Re: [controller-dev] Netconf plugin testing
Madhusudhan Kandadai <madhusudhan.opendaylight@...>
Thank you Reinaldo. Presently, I have LINC switch, docker image for netopeer installed in VM. Anyways the responses from RESTAPI is found to be perfect. Looks like using docker image is working fine. But the problem at the OSGi command line is because of another configuration somewhere in my machine. Anyways I will see if
there is any chance of getting another VM or clear all the configuration present in my machine so I can try to initiate netconf using LINC switch.Also, I have attached GET responses for your ready reference. Can you please let me know if I am missing something else? Thanks, Madhusudhan On Tuesday, April 1, 2014 10:29 PM, Reinaldo Penno <rapenno@...> wrote: Your errors seems a network problem. Maybe you have another configuration somewhere? I looked at "public abstract class AbstractNetconfSessionNegotiator" and the change in state happens when the Netconf session can not be established. A breakpoint in the start() method will probably tell you what is going on private void start() { final NetconfMessage helloMessage = this.sessionPreferences.getHelloMessage(); logger.debug("Session negotiation started with hello message {}", XmlUtil.toString(helloMessage.getDocument())); channel.pipeline().addLast(NAME_OF_EXCEPTION_HANDLER, new ExceptionHandlingInboundChannelHandler()); timeout = this.timer.newTimeout(new TimerTask() { @Override public void run(final Timeout timeout) { synchronized (this) { if (state != State.ESTABLISHED) { logger.debug("Connection timeout after {}, session is in state {}", timeout, state); final IllegalStateException cause = new IllegalStateException( "Session was not established after " + timeout); negotiationFailed(cause); changeState(State.FAILED); } else if(channel.isOpen()) { channel.pipeline().remove(NAME_OF_EXCEPTION_HANDLER); } } } }, connectionTimeoutMillis, TimeUnit.MILLISECONDS); // FIXME, make sessionPreferences return HelloMessage, move NetconfHelloMessage to API sendMessage((NetconfHelloMessage)helloMessage); changeState(State.OPEN_WAIT); } Anyway Just tested it. I did not see such an error. { "data": { "toaster": { "toasterManufacturer": "CESNET, z.s.p.o.", "toasterModelNumber": "toaster", "toasterStatus": "down" }, "netconf-state": { "datastores": { "datastore": [ { "name": "running" }, { "name": "startup" }, { "name": "candidate" } ] }, "sessions": { "session": [ { "session-id": 2529, "transport": "netconf-ssh", "username": "repenno", "source-host": "10.0.1.14", "login-time": "2014-04-02T05:13:47Z", "in-rpcs": 14, "in-bad-rpcs": 0, "out-rpc-errors": 0, "out-notifications": 0 } ] }, "schemas": { "schema": [ { "identifier": "toaster", "version": "2009-11-20", "format": "yin", "namespace": "http://netconfcentral.org/ns/toaster", "location": [ "NETCONF" ] }, { "identifier": "toaster", "version": "2009-11-20", "format": "yang", "namespace": "http://netconfcentral.org/ns/toaster", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-acm", "version": "2012-02-22", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-acm", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-acm", "version": "2012-02-22", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-acm", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-with-defaults", "version": "2010-06-09", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-with-defaults", "version": "2010-06-09", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults", "location": [ "NETCONF" ] }, { "identifier": "notifications", "version": "2008-07-14", "format": "yin", "namespace": "urn:ietf:params:xml:ns:netconf:notification:1.0", "location": [ "NETCONF" ] }, { "identifier": "notifications", "version": "2008-07-14", "format": "yang", "namespace": "urn:ietf:params:xml:ns:netconf:notification:1.0", "location": [ "NETCONF" ] }, { "identifier": "nc-notifications", "version": "2008-07-14", "format": "yin", "namespace": "urn:ietf:params:xml:ns:netmod:notification", "location": [ "NETCONF" ] }, { "identifier": "nc-notifications", "version": "2008-07-14", "format": "yang", "namespace": "urn:ietf:params:xml:ns:netmod:notification", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-notifications", "version": "2011-08-07", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-notifications", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-notifications", "version": "2011-08-07", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-notifications", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-monitoring", "version": "2010-10-04", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf-monitoring", "version": "2010-10-04", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf", "version": "2011-03-08", "format": "yin", "namespace": "urn:ietf:params:xml:ns:netconf:base:1.0", "location": [ "NETCONF" ] }, { "identifier": "ietf-netconf", "version": "2011-03-08", "format": "yang", "namespace": "urn:ietf:params:xml:ns:netconf:base:1.0", "location": [ "NETCONF" ] }, { "identifier": "ietf-yang-types", "version": "2010-09-24", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types", "location": [ "NETCONF" ] }, { "identifier": "ietf-yang-types", "version": "2010-09-24", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types", "location": [ "NETCONF" ] }, { "identifier": "ietf-inet-types", "version": "2010-09-24", "format": "yin", "namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types", "location": [ "NETCONF" ] }, { "identifier": "ietf-inet-types", "version": "2010-09-24", "format": "yang", "namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types", "location": [ "NETCONF" ] } ] }, "statistics": { "netconf-start-time": "2014-04-02T05:13:47Z", "in-bad-hellos": 0, "in-sessions": 1, "dropped-sessions": 0, "in-rpcs": 14, "in-bad-rpcs": 0, "out-rpc-errors": 0, "out-notifications": 0 } }, "netconf": { "streams": { "stream": [ { "name": "NETCONF", "description": "NETCONF Base Notifications", "replaySupport": true, "replayLogCreationTime": "2014-03-25T01:18:06Z" } ] } }, "nacm": { "denied-operations": 0, "denied-data-writes": 0, "denied-notifications": 0 } } }
On Tue, Apr 1, 2014 at 5:49 PM, Madhusudhan Kandadai <madhusudhan.opendaylight@...> wrote:
|
|