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

get ignores not-yet-committed data #16

Open
jktjkt opened this issue Jan 17, 2024 · 0 comments
Open

get ignores not-yet-committed data #16

jktjkt opened this issue Jan 17, 2024 · 0 comments

Comments

@jktjkt
Copy link
Contributor

jktjkt commented Jan 17, 2024

By default, the CLI operates on a "virtual datastore" which redirects writes to a "datastore that accepts writing" and reads to a "datastore that returns operational data". In the NETCONF implementation, this means that writes go to either startup or candidate, while reads are from either operational or running or startup. The intention is to make sure that get can print live non-config data, but the implementation is super confusing. For example, I can set something, but a get would not return that data by default.

One possible fix would be to implement separate "edit mode" vs. "read mode", and access the datastores without any fancy mapping. Another option would be some local caching of the data. The ergonomics have to be well thought-out.

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

No branches or pull requests

1 participant