Hello,
thanks for detailed description. The example I have referred to (netconf_confirmed_commit
) performs commit with <persist>
and confirms it with <persist-id>
. According to the description, it seems to me you didn’t send confirmation message within the timeout. Please can you check. The scenario should be:
1 . session
configure (<edit-config>
)
commit (<commit>
with <confirmed/>
and <persist
>)
<close session>
2 . session
commit (<commit
with <persist-id>
corresponding to the <persist>
from ` 1 . session) - to make config persistent and not to rollback
For reference, I’m pasting messages from the example ( <edit-config>
values are related to the example)
1 .session
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<edit-config>
<target>
<candidate/>
</target>
<config>
<hosts xmlns="http://tail-f.com/ns/example/host"
xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0">
<host nc:operation="merge">
<name>thost</name>
<ip>192.168.1.33</ip>
</host>
</hosts>
</config>
</edit-config>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<commit>
<confirmed/>
<persist>test_commit</persist>
</commit>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="3">
<close-session/>
</rpc>
]]>]]>
2 . session
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<commit>
<persist-id>test_commit</persist-id>
</commit>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<close-session/>
</rpc>
]]>]]>