gnmi
                                
                                
                                
                                    gnmi copied to clipboard
                            
                            
                            
                        gnmi collector is sending no data, close field = true and tag = 0
Hi,
Objective - Gnmi collector to send proper x-path data to tunnelclient. Issue - Currently Gnmi collector is sending nothing. ( Flow is better explained in the points below )
On host machine Gnmi Collector is running with this command : ./gnmi_collector -port 50053 -v 1 -tunnel_request "true" -config_file ./testdata/iqnos.cfg -cert_file ./testdata/selfsigned.crt -key_file ./testdata/selfsigned.key -stderrthreshold 6 -v 6 -logtostderr
This config_file is where the x-path data is defined.
Just consider the architecture where a tunnelclient (running on NE) is talking to gnmi collector (running on host). TC - tunnelclient GC - GNMI Collector I'll mention the steps which are working below :
- TC send registerOp ADD TARGET to GC.
 - GC replies which accept = true.
 - Surprisingly GC sent me session with tag = 1. I thought we had to send a subscribeOp after receiving register ACK. But anyways lets move on.
 - Now that I know my session is established I will start tunnel.
 - Now TC will send the Data message which has ( tag, data, close ).
 - Here TC sends tag = 1 and the rest are empty.
 - Now the problem comes.
 - Now after point 6 ( sending Data ) TC is waiting for response from GC.
 - TC gets response but the response is ( tag = 0, data = NULL, close = true ) and session gets closed.
 - Expected behavior is that GC should send data related to x-path subscribed in the config file.
 - Response should be (tag = 1, data = encrypted x-path, close = false)
 
My question is why am I getting this kind of response from GC. Can someone help and see if I'm missing anything and how to make this work ?