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

Attempting to rename a list entry via set produces confusing results #12

Open
jktjkt opened this issue Dec 20, 2023 · 0 comments
Open

Comments

@jktjkt
Copy link
Contributor

jktjkt commented Dec 20, 2023

In the example below, port is a list key:

/czechlight-roadm-device:leaf-ports[port='2']> set port 2
/czechlight-roadm-device:leaf-ports[port='2']> set port 4
/czechlight-roadm-device:leaf-ports[port='2']> commit
/czechlight-roadm-device:leaf-ports[port='2']> get
/czechlight-roadm-device:leaf-ports[port='2'] = (list)
/czechlight-roadm-device:leaf-ports[port='2']/port = 2
/czechlight-roadm-device:leaf-ports[port='2']>

I think that "list renames" are not really supported in either NETCONF or RESTCONF or sysrepo, so IMHO it makes sense to simply disallow setting (or deleting, etc) list keys.

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