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

9001 | 6.63 | Send netconf but session stuck

ravpuroh
Cisco Employee
Cisco Employee

 

Hello Experts,

Netconf session stuck after config saved.

Customer XML script.

I tried to send netconf as below the commacd saved but the session stuck


<?xml version="1.0"?>
<rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target><candidate/></target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface-configurations xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ifmgr-cfg" xc:operation="merge">
<interface-configuration>
<active>act</active>
<interface-name>Bundle-Ether999.5001020</interface-name>
<description>description OLT-[10.0.0.10]TEST</description>
</interface-configuration>
</interface-configurations>
</config>
</edit-config>
</rpc>


<?xml version="1.0" encoding="UTF-8" ?>
<rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<commit/>
</rpc>

 

My observations:--

in first case they are editing bundle config by sending netconf request to candidate store( uncommitted changes)

<?xml version="1.0"?>
<rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<edit-config>
<target><candidate/></target>
<config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
<interface-configurations xmlns="


then they are performing incorrect commit i guess

<?xml version="1.0" encoding="UTF-8" ?>
<rpc message-id="102" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<commit/>
</rpc>

ideally it should be something like this:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="7">
<commit>
<confirmed/>
</commit>
</rpc>
##

 

 

Could you please help me in updating correct XML script.

 

0 Replies 0