I was using restconf code on a cisco IOS-XE router (dist-rtr02) in the pre-built sample network. I'm wondering if I got a status code of 502 because of a firewall issue.
When I ran my python code the first time, I was getting a HTTPS status code of 502. I'm not sure why this happened but when I tried again it worked. What I noticed was RESTCONF was not enabled on the router by default. I had to configure the router t...
Ok folks, I tried it again and I got it to work. Here's a look at the JSON data I got:{"Cisco-IOS-XE-native:primary": {"address": "10.10.20.176","mask": "255.255.255.0"}}Thanks for your assistance.