Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special edit-config on "ordered-by user" list causes loosing of data #21

Closed
GoogleCodeExporter opened this issue Jun 11, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Problem was found by performing "bad" edit-config XML.
What steps will reproduce the problem?
1. Content of datastore:
<nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm">
 <rule-list>
  <rule>
   <name>permit-all-last</name>
   <module-name>*</module-name>
   <access-operations>*</access-operations>
   <action>permit</action>
  </rule>
  <rule>
   <name>permit-all-last2</name>
   <module-name>*</module-name>
   <access-operations>*</access-operations>
   <action>permit</action>
  </rule>
 </rule-list>
</nacm>

2. edit-config with the wrong key attribute that tries to move item "before 
itself":

<nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm" 
xmlns:yang="urn:ietf:params:xml:ns:yang:1">
<rule-list>
<rule yang:insert="before" yang:key="[name='permit-all-last']">
<name>permit-all-last</name>
</rule>
</rule-list>
</nacm>

What is the expected output? What do you see instead?
In the output permit-all-last is completely missing.

Original issue reported on code.google.com by tom.cejka@gmail.com on 20 Nov 2013 at 4:07

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Original comment by rkre...@cesnet.cz on 27 Nov 2013 at 3:02

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision ad182a7d6273.

Original comment by rkre...@cesnet.cz on 27 Nov 2013 at 4:06

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 1197f473e689.

Original comment by rkre...@cesnet.cz on 27 Nov 2013 at 4:06

@GoogleCodeExporter
Copy link
Author

And btw - the content of the datastore in the example is not valid, there are 
missing name and group inside the rule-list.

Original comment by rkre...@cesnet.cz on 29 Nov 2013 at 9:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant