CiscoDevNet / yang-explorer

An open-source Yang Browser and RPC Builder Application
Apache License 2.0
438 stars 177 forks source link

issue when connected to opendaylight netconf device simulator #50

Open vincenzheng opened 7 years ago

vincenzheng commented 7 years ago

I am trying to use this to connected to opendaylight netconf device simulator and try to get the capability.

netconf device simulator:

java -Xmx1G -XX:MaxPermSize=256M -jar netconf-testtool-1.2.0-20161102.1338-93-executable.jar --starting-port 8080 -ip 10.228.35.110

then I used yang explorer to get capablitiy and it stuck at the file 'runner.py' ----> get_capability() ----> self.disconect().

the self.disconnect() calling hang there for some reason.

then I have to change the def disconnect() method in 'runner.py' to:

        #self.handle.close_session()
        self.handle._session._transport.close()

It looks if netconf connection has been disconnected from server side, self.handle.close_session() blocked