This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scripting:netconf [2016/02/06 18:20] – created 82.46.188.134 | scripting:netconf [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Netconf xml: http:// | + | **Netconf xml**:\\ |
| + | Fun facts: | ||
| + | * XML is a superset of HTML | ||
| + | * Netconf is inspired in XML but is not 100% xml | ||
| + | |||
| + | http:// | ||
| \\ | \\ | ||
| <?xml version=" | <?xml version=" | ||
| Line 17: | Line 22: | ||
| </ | </ | ||
| </ | </ | ||
| + | | ||
| + | |||
| + | ---- | ||
| + | **BASIC NETCONF TEST:** | ||
| + | \\ | ||
| + | To test netconf from a linux client: | ||
| + | (client)# | ||
| + | python -m pip install netconf-console | ||
| + | netconf-console --host=< | ||
| + | |||
| + | Configure netconf in IOS-XE: | ||
| + | ip https secure-server | ||
| + | username < | ||
| + | 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 ''/ | ||