cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
454
Views
5
Helpful
0
Replies
Highlighted
Beginner

rpc-error even after operation is a success on the node.

XML RPC is sent to delete logging name-server:

#606

<?xml version="1.0" encoding="UTF-8"?><nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:9c3a5c5e-375b-4f56-b544-51356ea546b9"><nc:edit-config><nc:target><nc:candidate/></nc:target><config>

    <ip-domain xmlns="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-cfg">

    <vrfs>

    <vrf>

    <vrf-name>defaultone</vrf-name>

    <servers>

    <server nc:operation="delete">

       <order>1</order>

       <server-address>2.2.2.2</server-address>

      </server>

    </servers>

    </vrf>

    </vrfs>

    </ip-domain>

    </config></nc:edit-config></nc:rpc>

##

Response for above operation (note the matching message-id):

<?xml version="1.0"?>

<rpc-reply message-id="urn:uuid:9c3a5c5e-375b-4f56-b544-51356ea546b9" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<ok/>

</rpc-reply>

After which a commit operation is initiated:

#177

<?xml version="1.0" encoding="UTF-8"?><nc:rpc xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:cde9c7e0-2614-4945-8856-c484627d4c55"><nc:commit/></nc:rpc>

##

which comes with a response:

<rpc-reply message-id="urn:uuid:cde9c7e0-2614-4945-8856-c484627d4c55" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

<rpc-error>

  <error-type>application</error-type>

  <error-tag>operation-failed</error-tag>

  <error-severity>error</error-severity>

  <error-path xmlns:ns1="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-cfg">ns1:ip-domain/ns1:vrfs/ns1:vrf[vrf-name = 'defaultone']/ns1:servers/ns1:server[order = '1' and server-address = '2.2.2.2']</error-path>

  <error-message xml:lang="en">No such file or directory</error-message>

</rpc-error>

<rpc-error>

  <error-type>application</error-type>

  <error-tag>operation-failed</error-tag>

  <error-severity>error</error-severity>

  <error-path xmlns:ns1="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-cfg">ns1:ip-domain/ns1:vrfs/ns1:vrf[vrf-name = 'defaultone']/ns1:servers/ns1:server[order = '1' and server-address = '2.2.2.2']</error-path>

  <error-message xml:lang="en">No error</error-message>

</rpc-error>

<rpc-error>

  <error-type>application</error-type>

  <error-tag>operation-failed</error-tag>

  <error-severity>error</error-severity>

  <error-path xmlns:ns1="http://cisco.com/ns/yang/Cisco-IOS-XR-ip-domain-cfg">ns1:ip-domain/ns1:vrfs/ns1:vrf[vrf-name = 'defaultone']/ns1:servers/ns1:server[order = '1' and server-address = '2.2.2.2']</error-path>

  <error-message xml:lang="en">No error</error-message>

</rpc-error>

</rpc-reply>

However, the configuration is successfully deleted on the node.

Anything that I might be missing here?

cc einarnn saalvare yawchen

Everyone's tags (5)
Content for Community-Ad
August's Community Spotlight Awards