12-14-2020 01:19 PM
Incorrect device configuration when using OpenConfig OSPF payload for NETCONF
Demonstration : https://youtu.be/7npu5QNF5No
Cisco IOS XE Software, Version 16.09.03
Cisco IOS Software [Fuji], Virtual XE Software (X86_64_LINUX_IOSD-UNIVERSALK9-M), Version 16.9.3, RELEASE SOFTWARE (fc2)
from ncclient import manager
import xmltodict
import xml.dom.minidom
xml_string = '''
<config>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>default</name>
<protocols>
<protocol>
<identifier xmlns:oc-pol-types="http://openconfig.net/yang/policy-types">oc-pol-types:OSPF</identifier>
<name>1</name>
<config>
<identifier xmlns:oc-pol-types="http://openconfig.net/yang/policy-types">oc-pol-types:OSPF</identifier>
<name>1</name>
</config>
</protocol>
</protocols>
</network-instance>
</network-instances>
</config>
'''
m = manager.connect(
host='ios-xe-mgmt.cisco.com',
port=10000,
username='developer',
password='C1sco12345',
hostkey_verify=False
)
netconf_reply = m.edit_config(xml_string, target = 'running')OSPF process 1 configured.
BGP for ASN 1 configured.
12-15-2020 10:13 AM - edited 12-15-2020 10:16 AM
Hello Renato,
I found a bug from this exact software version release related to NETCONF.
URL:
https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvp13260
Symptom:
netconf-yang command can not use after 16.9.3 upgrade
Workaround:
Change redundancy mode to none and reboot
I hope this helps!
Best Regards,
Alex Stevenson
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide