Git Product home page Git Product logo

Comments (4)

michalvasko avatar michalvasko commented on July 20, 2024 1

Thanks, try now with the latest libyang devel, should be fixed.

from sysrepo.

michalvasko avatar michalvasko commented on July 20, 2024

Hard to say what exactly is happening but it may only be that the nodes are being ordered when they should not but we have fixed some similar issues, what version are you using exactly? You need to try using the devel branches (of libyang and sysrepo at least) and if it still does not work, I will need to reproduce it.

from sysrepo.

jlesk avatar jlesk commented on July 20, 2024

I reproduced today with libyang 3.0.11 and sysrepo 2.7.1.

I have attached a sysrepo patch to easily reproduce the behavior.

I created a new example push_in_list_example.c and a list-test.yang.
In the yang file, the container has the "config false", otherwise I don't get the problem.

I added the yang module with:
sysrepoctl --install list-test.yang

Then using the examples tool, I am listening to the operational data changes:
./application_changes_example list-test /list-test:mycontainer/mylist operational

I the example code, I first create a list with one object.
Then I merge with a list of 2 objects. To execute:
./push_in_list_example

Then the application_changes_example output returns this:
MOVED: /list-test:mycontainer/mylist[name='first'] (list instance)
after /list-test:mycontainer/mylist[name='last'] (list instance)
CREATED: /list-test:mycontainer/mylist[name='last'] (list instance)
CREATED: /list-test:mycontainer/mylist[name='last']/name = last

As I explained earlier, the 'MOVED' with parameter 'after'
appears before the 'CREATED'.

0001.txt

from sysrepo.

jeremie6wind avatar jeremie6wind commented on July 20, 2024

Thanks, it is working fine.

from sysrepo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.