Questions tagged [netconf]
53 questions
0
votes
1 answer
Why are Netconf 1.1 RPC operations are defined with same old XML namespace?
RFC 4741 defines Netconf 1.0 and RFC 6241 defines Netconf 1.1. Section 3.1 of these RFC says that;
All NETCONF protocol elements are defined in the following namespace: urn:ietf:params:xml:ns:netconf:base:1.0
My query is; RFC6241 has defined a new…

Bhuvan
- 370
- 9
0
votes
1 answer
Not able to fetch interface details using netconf
I am trying to fetch details from the device in Devnet sandbox using the netconf protocol as below, but I am not able to get the details as it is returning me None.
Could someone help me understand if I am doing something wrong?
import…

user380696
- 91
- 1
- 3
- 10
0
votes
1 answer
how to write xml instance data for a given yang file
I am learning netconf and yang. One thing which confuses me is, how to write an XML instance data for a given yang schema. Is there a tool which can create a sample instance data? Where I can just put my own values without worrying about nodes, and…

myquest4 sh
- 371
- 4
- 16
0
votes
1 answer
CLI to YANG XML from local input
I have a huge cli conf file that I'd like to convert to YANG xml
....
system
host-name hostname.com
system-ip 8.8.8.8
site-id 1
organization-name "Organization name"
sp-organization-name "Organization name"
vbond vbond.net
....
!
There are…

Eduardo A EDUARDO Fernandez Di
- 402
- 4
- 13
0
votes
1 answer
Key exchange was not finished, connection is closed with ganymed-ssh-2 and Cisco Confd
I am using JNC 1.0 & ganymed-ssh-2 v262 to establish a Netconf session over SSH to a Cisco Confd node and getting the following error. What could be the reason?
java.io.IOException: Key exchange was not finished, connection is closed.
at…

Mohan
- 129
- 8
0
votes
1 answer
NETCONF get running configuration
I am trying to get a running configuration from a network device, using NETCONF (not one of the well known such as Cisco/Juniper, etc).
Using ncclient, I successfully get the capabilities and schemas but when trying to get running config the SSH…

Raz_2014
- 1
0
votes
0 answers
netconf getting a parser huge_tree error message
I am getting an error when I attempt to push a config to an ASR9K running IOS XR Software, Version 5.3.4.
The payload prints out without any issues and get's interpreted correctly by Python. The problem is when I send it the router, it doesn't like…

Texia Plazaola
- 41
- 1
- 5
0
votes
1 answer
jinja2 with xml not rendering
I am new to netconf. I have created an xml data model as a jinja2 template. I am reading the file and attempting to render it with the variables from a dictionary. The template prints out, but the raw file without any variables populated. So I…

Texia Plazaola
- 41
- 1
- 5
0
votes
0 answers
bad arg and connection errors using Netconf-Yang on IOS-XE
I'm working Netconf-Yang for the first time on an IOS-XE device (Cat 9k, 16.8.1r) and I'm sending the following XML block to change an interface description.
I'm using ansible netconf_config with these parameters:
- name: netconf playbook
hosts:…

MrPoulet
- 91
- 1
- 1
- 6
0
votes
2 answers
the connection plugin 'ansible_connection: ansible.netcommon.netconf' was not found
I am trying to run netconf over Ansible. I have installed ncclient via pip3 as well as netcommon via Ansible-galaxy. If I do an Ansible-galaxy list netcommon shows up on the list. My ansible version says it is running python 3.9 and pip3 says it…

Texia Plazaola
- 41
- 1
- 5
0
votes
2 answers
Why netconf is not using XML as data modeling language?
We know Netconf uses yang as data modeling language. Also it comprises of XML.
Why XML itself is not used as modeling language?. What stops XML as a data modeling language?.

JavaUser
- 25,542
- 46
- 113
- 139
0
votes
1 answer
Parsing xml with namespaces
I am parsing a XML file using xml.etree.ElementTree, and I am reading a xml, however when it runs, I can't take the information because the lines rpc-reply and interfaces have the message-id and xmlns. (Here I only paste one part of my xml). So, if…

M_A
- 11
- 4
0
votes
1 answer
RPC Request for get-schema of bbf(broadband forum) yangs
I am trying below RPC request for module bbf-dot1q-types. but facing error like identifier is not found.
Please help me on this to what is the right RPC request for bbf yangs.
…

sowji
- 43
- 1
- 6
0
votes
2 answers
How to get interfaces status with Netconf via ncclient
I am using ncclient to get information from a router (IOS-XR), however I am not able to get the status. I mean, If I run from the router the command "Show interfaces description" I can see the interface, status, protocol and description. I want to…

M_A
- 11
- 4
0
votes
1 answer
Exception has occurred: SessionCloseError
I have the following code:
from ncclient import manager
router = {"host": "ios-xe-mgmt.cisco.com", "port": "8181",
"username": "developer", "password": "C1sco12345"}
with manager.connect(host=router["host"], port=router["port"],…

Lucas Mathews
- 1
- 1