[BUG] cannot get full output using Salt CLi net.cli function napalm_network module is large #59167
Labels
Bug
broken, incorrect, or confusing behavior
Pending-Discussion
The issue or pull request needs more discussion before it can be closed or merged
Milestone
Description
When running commands on Salt CLI like net.cli function from NAPALM_NETWORK MODULE of Salt ,If the output/response of the command is large it simply trims the output completely.
In other words Salt is not able to to fetch switch’s routing table, other than a very small VRF table with 100 - 200 routes. If at all the data is managed to be received with 100 - 200, it is taking more than 5 mins. Otherwise, it simply trims the data completely and display "VALUE_TRIMMED" as a result returned.
And trying to run the same command 2 or more time will result in
""
Minion did not return. [Not connected]
"""
I have tried changing the the master and minions configuration with
max_event_size
to 5242880 and kept increasing this to check if this would work. But no luck in getting the full output for the commandAlso tried passing the flag to increase the timing to wait for the response from the minion using --timeout flag, This also doesn't seem to help.
Whereas, When using a python script or calling pyeapi I can get the complete output of the command with in 2 -3 seconds.
For example:
from napalm import get_network_driver
driver = get_network_driver('eos')
device = driver(hostname='arista-sw-d2', usename='username', password='password')
device.open()
device.cli(['show ip route vrf all'])
---output snipped ----
Setup
VM1 configured as salt-master
salt-master service running on Ubuntu 16.04
salt-master version 3001.1
memory 48 GB
cpus 20
VM2 configured as salt-minion for running the proxy services for network devices using napalm
salt-minion service running on Ubuntu 16.04
salt-minion version 3001.1
memory 64 GB
cpus 24
napalm version 2.5.0
https://docs.saltstack.com/en/3000/ref/proxy/all/salt.proxy.napalm.html#module-salt.proxy.napalm
Steps to Reproduce the behavior
tried many ways of executing the command show ip route vrf all from Salt on the device.
Using napalm.call
Expected behavior
Running command "show ip route vrf all" on a network device using net.cli should display the complete output, not the "VALUE_TRIMMED"
Screenshots
Added screenshots to help explain the problem.
Versions Report
salt --versions-report
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: