Skip to content

Question: salt-sproxy support returners ? #259

@network-shark

Description

@network-shark

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

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions