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 and get-data is not same #1691

Open
dwdengwei opened this issue Jan 12, 2025 · 2 comments
Open

get and get-data is not same #1691

dwdengwei opened this issue Jan 12, 2025 · 2 comments
Labels
is:question Issue is actually a question.

Comments

@dwdengwei
Copy link

Hello

netopeer2-server 2.1.71

get-data --datastore operational --filter-xpath /ietf-hardware:hardware
DATA

2023-11-06T07:39:36+00:00 452-ORU o-ran-hw:O-RAN-RADIO O-RAN-RADIO 0800 b_4.0.10_netconf_11 822310400222 DG LIMITED 2021-12-27T00:00:00+00:00 2023-11-06T07:39:36+00:00 unlocked enabled idle NORMAL 452-ORU Port0 PORT Port0

get --filter-xpath /ietf-hardware:hardware
DATA

2023-11-06T07:39:36+00:00 452-ORU O-RAN-RADIO 0800 b_4.0.10_netconf_11 822310400222 DG LIMITED 2021-12-27T00:00:00+00:00 2023-11-06T07:39:36+00:00 enabled idle NORMAL Port0 PORT

I find get method miss params eg: class admin-state and o-ran-name, I want to get is same to get-data result, I need help,please

@dwdengwei
Copy link
Author

hardware

@michalvasko
Copy link
Member

I want to get is same to get-data result

The 2 operations are not the same, what sense would that make? get-data simply returns the specified datastore contents, in your case operational. get returns running data with state nodes from operational (as defined here, second bullet).

@michalvasko michalvasko added the is:question Issue is actually a question. label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants