Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arista.eos.eos_config unable to handle interactive prompts #565

Open
diego-lopez8 opened this issue Jan 5, 2025 · 0 comments
Open

arista.eos.eos_config unable to handle interactive prompts #565

diego-lopez8 opened this issue Jan 5, 2025 · 0 comments
Labels
feature This issue/PR relates to a feature request.

Comments

@diego-lopez8
Copy link

diego-lopez8 commented Jan 5, 2025

SUMMARY

Configuration options which have a interactive prompt, such as port breakouts, require y confirmation via a prompt. While this is implemented in arista.eos.eos_command, this is not implemented in arista.eos.eos_config, thus this module is unable to deploy any configurations that include this. There doesn't seem to be a workaround either.

ISSUE TYPE
  • Feature Request
COMPONENT NAME

arista.eos.eos_config

ANSIBLE VERSION
ansible [core 2.17.5]
  config file = None
  configured module search path = ['/home/vincent/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/vincent/miniconda3/envs/net/lib/python3.11/site-packages/ansible
  ansible collection location = /home/vincent/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/vincent/miniconda3/envs/net/bin/ansible
  python version = 3.11.10 (main, Oct  3 2024, 07:29:13) [GCC 11.2.0] (/home/vincent/miniconda3/envs/net/bin/python)
  jinja version = 3.1.4
  libyaml = True
COLLECTION VERSION
arista.eos                               9.0.0  
CONFIGURATION
CONFIG_FILE() = None
OS / ENVIRONMENT

Arista DCS-7280CR3-32D4-F
Software image version: 4.31.2F

STEPS TO REPRODUCE
    - name: Deploy Arista EOS configurations
      arista.eos.eos_config:
        backup: true
        src: "configs/{{ inventory_hostname }}.conf"
        replace: config
        save_when: always
      register: arista_result

With a config source file with the following:

...
interface Ethernet3/1
   description TEST BREAKOUT
   mtu 9100
   no shutdown
   speed 100g-2
!
...

In the debug output, I see

    HSRN-SW8A-2MT(config-s-ansible_17-if-Et3/1)#speed 100g-2\r\n! The requested speed change will cause the following \r\ninterfaces to become inactive:\r\n\r\n   Ethernet4/1\r\n\r\nDo you wish to proceed with this command? [y/N]

Which does not get answered and there is no parameter to specify the answer in.

EXPECTED RESULTS

I expect to have a prompt, similar to the arista.eos.eos_command module, where the prompts can be answered if I am deploying the configurations as a whole file.

ACTUAL RESULTS

It appears that once prompted, ansible adds the next line which automatically declines the prompt.

fatal: [hsrn-sw8a-2mt]: FAILED! => {
    "changed": false,
...
@roverflow roverflow added the feature This issue/PR relates to a feature request. label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants