Skip to content

Setting default operation as replace in the RPC gives "data model already exists" error. #152

@rosy8

Description

@rosy8

Hi,

When default-op is "replace", its giving error as below..

<?xml version="1.0" encoding="utf-8"?>
 <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="13">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>data-exists</error-tag>
    <error-severity>error</error-severity>
    <error-path>/xxx-config/vrf:vrfs/vrf[name='Test']</error-path>
    <error-message xml:lang="en">Request could not be completed because the relevant data model content already `exists.</error-message>
 </rpc-error>
</rpc-reply>

By looking at the code and log, what I could get that it's trying to do "sr_set_item" before doing "sr_delete_item".

Regards,
Rosy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions