User Tools

Site Tools


scripting:netconf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:netconf [2022/09/06 18:47] – external edit 127.0.0.1scripting:netconf [2023/11/02 14:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 **Netconf xml**:\\ **Netconf xml**:\\
-Fun fact: XML is a superset of HTML+Fun facts 
 +  * XML is a superset of HTML 
 +  * Netconf is inspired in XML but is not 100% xml 
 http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/nx-os/xml/user/guide/nxos_xml_interface/using.html http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/nx-os/xml/user/guide/nxos_xml_interface/using.html
 \\ \\
Line 19: Line 22:
       </get-config>        </get-config> 
   </rpc>]]>]]>   </rpc>]]>]]>
 +  
 +
 +----
 +**BASIC NETCONF TEST:**
 +\\
 +To test netconf from a linux client:
 +  (client)# 
 +  python -m pip install netconf-console
 +  netconf-console --host=<ip> --port=830 --user=<user> --password=<pass>
 +
 +Configure netconf in IOS-XE:
 +  ip https secure-server
 +  username <name> privilege 15 password <pass>
 +  netconf-yang
 +  
 +Configure netconf in IOS-XR:
 +  crypto key generate rsa
 +  ssh server v2
 +  ssh server netconf
 +  netconf agent tty
 +  netconf-yang agent shh
 +
 +Other IOS-XR commands:
 +  show commit changes diff
 +  rollback configuration last    # from the root level
 +
 +----
 +
 +YANG visualization
 +  * DevNet yangexplorer (legacy)
 +  * Advanced NETCONF Explorer (anx) (new)
 +
 +NETCONF on IOS-XE using ncclient
 +
 +
 +----
 +
 +__RESTCONF__
 +\\
 +  * Restconf is json and uses https as transport.
 +  * So to test restconf I just use postman
 +  * The resource part normally has ''/restconf/''
scripting/netconf.1662490020.txt.gz · Last modified: (external edit)