08-24-2017 04:46 AM
I installed libydk and related ietf/openconfig/cisco* packages for ydk-py. When I run the hello world app I get the below error. Any probable issues I can debug ? I am using a cisco switch on GNS3.
-ThinkCentre-M92p:$ python hello.py
BEFORE Provider
Traceback (most recent call last):
File "hello.py", line 13, in <module>
provider = NetconfServiceProvider(address="10.138.77.124", port=830, username="test", password="test123", protocol="ssh")
RuntimeError: YCPPClientError: Could not connect to 10.138.77.124
08-24-2017 11:21 AM
Hi Roshan,
Is the port 830 the correct port for your device?
Thanks
08-27-2017 09:28 PM
I am using Cisco 7200 on GNS3 with IoS 15.2. I am assuming the default port used for Netconf is 830 since I couldnt find any config command to change the Netconf port. When I connect to netconf using the command "ssh -v -s test@10.138.77.179 netconf" it works fine but returns connection refused error when I use "-p 830" option as part of the ssh command.
Anyway I can find the port number being used by Netconf on Cisco switch ?
Thanks for your response.
Regards,
-Roshan.
08-28-2017 12:21 AM
Roshan,
A Cisco 7200 only supports at best legacy Netconf (RFC 4741-compliant), but the YDK is for RFC6241+RFC6020-compliant devices only. For IOS, this means IOS-XE 16.3.1 or later.
Cheers,
Einar
08-28-2017 12:45 AM
Thanks Einar, will upgrade and check once.
10-03-2020 11:35 PM
Hi , i have IOS-XE 16.8.1a but still facing this issue. Can you please help ?
10-04-2020 11:36 AM
Could you please be more specific and post your test environment, script and YDK log with enabled DEBUG level.
Were you able connect to the Netconf server from CLI? The command is:
$ ssh <uname>@<IP-address> -p 830 -v -s netconf
I also would suggest to open new discussian thread as YDK changed a lot since 2017 and some SSH issues have already been addressed.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: