01-20-2023 05:02 PM
I am getting this error for reading config with live-status command in python code. Device is ios-xe C9500-24Y4C.
action_input = device.live_status.cisco_ios_stats__exec["show"].get_input()
File "/opt/ncs/ncs-5.6.4/src/ncs/pyapi/ncs/maagic.py", line 478, in __getattr__
super(Node, self).__getattribute__(name)
AttributeError: 'Container' object has no attribute 'cisco_ios_stats__exec'
Solved! Go to Solution.
01-20-2023 05:21 PM
I resolved this -
It was supposed to be :
action_input = device.live_status.ios_stats__exec[command].get_input()
01-20-2023 05:21 PM
I resolved this -
It was supposed to be :
action_input = device.live_status.ios_stats__exec[command].get_input()
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide