cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
61
Views
0
Helpful
1
Replies
Cisco Employee

gNMI ‘subscribe’ example

Hi Team,

I'm having some trouble when executing the sample script at

 

http://ydk.cisco.com/py/docs/api/services/gnmi_service.html#gnmi-service-examples

 

Running the script results in the following error:

 

Traceback (most recent call last):

  File "gnmi-test.py", line 45, in <module>

    pool.map(subscribe, print_telemetry_data)

  File "/usr/lib/python3.5/multiprocessing/pool.py", line 260, in map

    return self._map_async(func, iterable, mapstar, chunksize).get()

  File "/usr/lib/python3.5/multiprocessing/pool.py", line 343, in _map_async

    iterable = list(iterable)

TypeError: 'function' object is not iterable

 

The script, while identical, has necessary changes to reflect my environment such as IP, Port, username, and password, along with the YANG path for the repository.

 

Running python 3.5.2, ubuntu 16.04.

 

partial pip list -

ydk (0.8.3)

ydk-models-cisco-ios-xr (6.6.2)

ydk-models-ietf (0.1.5.post2)

ydk-models-openconfig (0.1.6.post1)

ydk-service-gnmi (0.4.0.post2)

 

Appreciate any guidance and assistance.

Thanks,

RK

1 REPLY 1
Highlighted
Cisco Employee

Re: gNMI ‘subscribe’ example

Hi Rajesh

I agree with you. This example is not working. I have opened documentation issue on GitHub. I will come back to you shortly when the example is fixed.

Thank you.

Content for Community-Ad
July's Community Spotlight Awards
This widget could not be displayed.