02-25-2021 01:18 AM
My Cisco device is not directly accessible from the system where I am running the yangsuite, so I usually use an intermediate jump host to reach the device.
I can connect to the Cisco device from the shell using the port forwarding as below
ssh -L 830:<device-ip>:830 user@jump-host-ip
And then using below SSH from the shell
ssh -p 830 device_user@localhost -s netconf
But the connectivity is not working from the yangsuite when I give the Address as 127.0.0.1 in yangsuite.
The error I get is "Could not open socket to 127.0.0.1:830".
How can I get this working ?
02-25-2021 01:54 AM
@peeyushpd29 not sure if this is what you are looking for https://github.com/jeremycohoe/cisco-ios-xe-programmability-lab
Hope this helps.
02-28-2021 09:23 PM - edited 02-28-2021 09:30 PM
Thanks for the pointers @bigevilbeard.
If I understood it right, the reference link you shared mentions about running yangsuite on a server (Ubuntu server here) which is a part of the lab network and to access the yangsuite webUI from the jump host system from the RDP session. Is this understanding right ?
Referring the link you shared, I am exploring that option right now.
My requirement here is to run the yangsuite on my personal system (mac) and to be able to exchange request/replies with the lab device (Cisco XR).
The request/responses will need to go via the jump host as the lab device.
Is this something possible with some config/networking changes on my mac or the jump host or the lab device ?
12-11-2023 04:39 AM
Hi @peeyushpd29 ,
were you able to solve the issue with connecting via jumpserver?
I am trying the same thing with YANGSsuite and exactly as you described, it works fine if I I connect via NetConf in CLI, but it can't open the socket from YANG Suite.
Thanks in advance,
Dragan
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide