cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2028
Views
0
Helpful
6
Replies

NETCONF/YANG and RESTCONF on IOS XE not responding

@JP
Cisco Employee
Cisco Employee
ios-xe-mgmt.cisco.com:9443 is not responding to API calls. Getting connection refused. It may need to be reset.
6 Replies 6

zowu
Cisco Employee
Cisco Employee

We've reset the host and it is now reachable.

Could you please again? The same problem seems to repeat

It appears when you reset the host, you also have to SSH in and enable netconf with "netconf-yang" and "netconf ssh". That being said, using the sample code provided, I have a filter of:

<filter>
  <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
    <interface>
      <name>GigabitEthernet2</name>
    </interface>
  </interfaces>  
</filter>

Which which results in an error of: 

...truncated
<error-info>
    <bad-element>interfaces</bad-element>
</error-info>

Do the yang models need to be re-imported?

Can confirm that the sample code on Github also does not work. RESTCONF for the IOS-XE device works fine, interestingly enough.

Hey - per the chat on twitter, this is working ok here using this sandbox 

 

https://devnetsandbox.cisco.com/RM/Diagram/Index/38ded1f0-16ce-43f2-8df5-43a40ebf752e?diagramType=Topology

 

The yang models reside on the box, there isn't a need to re-import these. I am not sure why your result differs from mine hereScreenshot 2019-07-08 at 19.13.48.pngScreenshot 2019-07-08 at 19.10.35.png

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io