Closed SeanCondon closed 4 years ago
This might only be on the first NetworkChange
made after the cluster is started
Also I'm finding that if I make a few changes (e.g. /interfaces/interface[name=eth1]/config/name
and description
and enabled
), and then do a compact-changes
then the result I'm getting is the result of the complete snapshot - not just the attribute that was requested:
~ $ gnmi_cli -get -address onos-config:5150 \
> -proto "path: <target: 'devicesim-1', elem: <name: 'system'> elem: <name: 'clock' > elem: <name: 'config'> elem: <name: 'timezone-name'>>" \
> -timeout 5s -en PROTO -alsologtostderr \
> -client_crt /etc/ssl/certs/client1.crt -client_key /etc/ssl/certs/client1.key -ca_crt /etc/ssl/certs/onfca.crt
gives
notification: <
timestamp: 1579178113
update: <
path: <
elem: <
name: "system"
>
elem: <
name: "clock"
>
elem: <
name: "config"
>
elem: <
name: "timezone-name"
>
target: "devicesim-1"
>
val: <
json_val: "{\"interfaces\":{\"interface\":[{\"config\":{\"description\":\"First device\",\"enabled\":true,\"name\":\"eth1\"},\"name\":\"eth1\"}]},\"system\":{\"clock\":{\"config\":{\"timezone-name\":\"Europe/Edinburgh\"}}}}"
>
>
>
~ $
Fixed by #1044
Describe the bug When a NetworkChange is made through gNMI Set the change is stored properly, but it is not shown in a subsequent gNMI Get
To Reproduce 1) Create a cluster using
onit
:2) add a device simulator
3) make a configuration change through the gNMI NBI
4) call gNI Get to see that this value is NOT in the result set:
gives
5) Verify that the Network Change exists and is
COMPLETE
6) Verify that the
DeviceChange
is present andCOMPLETE
7) Doing a gNMI Get on all attributes of
devicesim-1
does not get itgives
Expected behavior When a value is in a
NetworkChange
or aSnapshot
it should be visible in the gNMI GetLogs, text or screenshots
Additional context This is one of the foundations of the system, and is a high priority to fix