You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In new EOS versions (4.26+) playbooks are failing when using network_cli connection method for eos_config module if tcam profile changing commands are part of the configurations e.g.:
hardware tcam
system profile vxlan-routing
Note that this works fine with httpapi
The problem seems to be caused by the newly introduced warning prompt when changing TCAM profiles:
Changing TCAM profile will cause forwarding agent(s) to exit and restart.
All traffic through the forwarding chip managed by the restarting
forwarding agent will be dropped.
Proceed [y/n]```
When the tcam commands are present the playbook fails with `% Invalid input` for one of the commands that are after the tcam section in the configuration as part of those commands would go missing or not attempted to be applied at the right config level. (this seems to be happening if the config after the tcam profile is a bit larger like several hundreds lines); if the config is very small then the playbook just times out (example outputs provided further down).
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible [core 2.12.4]
but older versions have the same issue too
COLLECTION VERSION
Collection Version
---------- -------
arista.eos 5.0.1
same/similar issue can be seen.
It might be better to do what CloudVision does and use copy terminal: session-config and then paste the config in one blob instead of line by line pasting. The warning would still pop up in that case but won't result in Invalid input
The text was updated successfully, but these errors were encountered:
I patched the network_cli module locally to use the 'copy terminal: session-config' and did some performance tests afterwards. On our biggest router with about 6000 lines of config, the original module needs about 10 - 11 minutes to do a full config compare (initiate blank session, push the complete config, do a diff, abort). The patched module needs for the same process only about 30 seconds and it also fixes the above mentioned TCAM profile warning message issue.
If you are interested, I can provide you with my patch.
SUMMARY
In new EOS versions (4.26+) playbooks are failing when using
network_cli
connection method foreos_config
module if tcam profile changing commands are part of the configurations e.g.:Note that this works fine with
httpapi
The problem seems to be caused by the newly introduced warning prompt when changing TCAM profiles:
but older versions have the same issue too
COLLECTION VERSION
also tried 4.1.2 and 3.1.0
CONFIGURATION
OS / ENVIRONMENT
Arista EOS 4.26 / 4.27
STEPS TO REPRODUCE
Example playbook
example cfg file: https://gist.github.com/noredistribution/a713aa78b703c8e1a904bc1380e31851
EXPECTED RESULTS
Expect the playbook to go through and output the diff between the session-config and running-config
ACTUAL RESULTS
for longer configs such as the one provided in the gist file I get:
for shorter configs (same as in the gist except for the alias commands)
or
Note that when doing the same via the CLI as ansible does with the eos_config module ie
same/similar issue can be seen.
It might be better to do what CloudVision does and use
copy terminal: session-config
and then paste the config in one blob instead of line by line pasting. The warning would still pop up in that case but won't result in Invalid inputThe text was updated successfully, but these errors were encountered: