Open sai1274 opened 1 year ago
Hey @sai1274 ,
Could you please run for me the code with debug=True
flag set and share with me the output?
So far, first impression that there is no value, and we check for value to present: https://github.com/akarneliuk/pygnmi/blob/master/pygnmi/client.py#L498
Thanks, Anton
Hey @akarneliuk ,
Here is the output you requested for
GRPC Target
----------------------------------------
IP_ADDRESS:57400
----------------------------------------
GRPC Channel options
----------------------------------------
[]
----------------------------------------
gNMI request
----------------------------------------
----------------------------------------
gNMI response
----------------------------------------
supported_models {
######
}
supported_encodings: JSON_IETF
supported_encodings: ASCII
supported_encodings: PROTO
gNMI_version: "0.8.0"
----------------------------------------
gNMI request
----------------------------------------
prefix {
origin: "Cisco-IOS-XR-um-grpc-cfg"
}
path {
origin: "Cisco-IOS-XR-um-grpc-cfg"
elem {
name: "grpc"
}
elem {
name: "no-tls"
}
}
encoding: JSON_IETF
----------------------------------------
gNMI response
----------------------------------------
notification {
timestamp: 1698656459700171701
update {
path {
origin: "Cisco-IOS-XR-um-grpc-cfg"
elem {
name: "grpc"
}
elem {
name: "no-tls"
}
}
}
}
error {
}
----------------------------------------
{'notification': [{'timestamp': 1698656459700171701, 'prefix': None, 'alias': None, 'atomic': False, 'update': [{'path': 'grpc/no-tls'}]}]}
I've replaced sensitive data with placeholders, indicated by hashes, in accordance with our company's data protection policy."
Thanks, Sampath
I am currently experiencing an issue with the pygnmi library. When attempting to use the 'get' operation on a leaf for a presence container, the function does not return any value. However, when the same 'get' operation is performed at the container level, it returns an empty dictionary for the specific leaf.
Here is a snippet of my code for reference:
I've also attached the output below:
Can you please help me understand why the 'get' operation isn't returning the expected output at the leaf level? Any help or guidance would be appreciated.
Thanks, Sampath