netopeer2 icon indicating copy to clipboard operation
netopeer2 copied to clipboard

get and get-data is not same

Open dwdengwei opened this issue 1 year ago • 2 comments

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 avatar Jan 12 '25 07:01 dwdengwei

hardware

dwdengwei avatar Jan 12 '25 07:01 dwdengwei

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 avatar Jan 13 '25 08:01 michalvasko