Simple question: how do I print output from .get() method
MrMagoo2018
Ronaldon2018 at gmail.com
Wed May 30 01:44:55 EDT 2018
Hello folks, imagine I have the code below and I am getting the "error" message when attempting to print() the output of 'sw_report'.
Can you suggest which method I should use to retrieve this? Is that a dictionary maybe?
from arista import arista
m = arista()
m.authenticate ("user","password")
sw_report = m.np.sw_report.get("swType="EOS",swMajorVersion="5.0")
print (sw_report)
<generator object arista._result_iterate at 0x7fdb30f0af10>
More information about the Python-list
mailing list