Open n-holmstedt opened 2 years ago
@n-holmstedt Thanks for the report. I was able to reproduce this and I suspect there is a global variable somewhere that is causing this to happen. As a work around, if you specify the interface name as a non-keyword argument, eg. salt router\* net.lldp TenGigE0/0/0/1
it should work as expected.
Description Getting various error when sending napalm_net function calls, with key-value arguments, to multiple proxy-minions controlled by the same delta-proxy.
Sending the same command, targetting a single minion, works well for all commands.
tested: net.lldp interface= -Yields a TypeError
net.cli '' textfsm_parse=true textfsm_template='' -Yields a Attribute error
Setup (Please provide relevant configs and/or SLS files (be sure to remove sensitive info. There is no general set-up of Salt.)
Please be as specific as possible and give set-up details.
Single salt master hosted in a docker container (Docker CE 19.03.8) on CentOS8.1 VM. Single deltaproxy hosted in a docker container on the same machine. Six IOX-XR 7.3.2 routers controlled by the delta proxy Edit: napalm 3.2.0
The issue also occurs when the delta-proxy in Kubernetes.
deltaproxy pillar:
Router pillar:
Steps to Reproduce the behavior (Include debug logs if possible and relevant)
Traceback from deltaproxy for net.lldp:
Traceback from deltaproxy for net.cli
Expected behavior I expected the proxy-minions to return the same output as when targeted as a single minion.
Screenshots If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.) ``` Salt Version: Salt: 3004rc1 Dependency Versions: cffi: 1.14.6 cherrypy: unknown dateutil: 2.8.1 docker-py: Not Installed gitdb: Not Installed gitpython: Not Installed Jinja2: 2.11.3 libgit2: 1.1.0 M2Crypto: Not Installed Mako: Not Installed msgpack: 1.0.2 msgpack-pure: Not Installed mysql-python: Not Installed pycparser: 2.17 pycrypto: Not Installed pycryptodome: 3.9.8 pygit2: 1.6.1 Python: 3.7.12 (default, Sep 8 2021, 01:55:52) python-gnupg: 0.4.4 PyYAML: 5.4.1 PyZMQ: 18.0.1 smmap: Not Installed timelib: 0.2.4 Tornado: 4.5.3 ZMQ: 4.3.1 System Versions: dist: alpine 3.14.2 locale: UTF-8 machine: x86_64 release: 4.18.0-147.5.1.el8_1.x86_64 system: Linux version: Alpine Linux 3.14.2 ```Additional context Not sure if this is applicable for napalm_net only