-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Hello @mirceaulinic ,
does salt-sproxy support using --return mycustom returner ?
I'm trying to use net.cli inside my returner , but from the logs I think the connection is already lost and then the execution of the command fails.
[DEBUG ] read_channel:
[DEBUG ] read_channel:
[DEBUG ] write_channel: b'exit\n'
[DEBUG ] LazyLoaded one_liner.returner
[ERROR ] Cannot execute "cli" on mydevice as myuser. Reason: 'NoneType' object has no attribute 'send_command'!
[ERROR ] Traceback (most recent call last):
File "/home/myuser/.pyenv/versions/3.7.6/envs/py376/lib/python3.7/site-packages/salt/utils/napalm.py", line 178, in call
out = getattr(napalm_device.get('DRIVER'), method)(*args, **kwargs)
File "/home/myuser/.pyenv/versions/3.7.6/envs/py376/lib/python3.7/site-packages/napalm/ios/ios.py", line 2363, in cli
output = self._send_command(command)
File "/home/myuser/.pyenv/versions/3.7.6/envs/py376/lib/python3.7/site-packages/napalm/ios/ios.py", line 205, in _send_command
output = self.device.send_command(command)
AttributeError: 'NoneType' object has no attribute 'send_command'
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested