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

DNM check support for maintenance-mode #729

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

KB-perByte
Copy link
Collaborator

@KB-perByte KB-perByte commented Jan 23, 2023

SUMMARY

Enables collection to handle configuration when IOSXE-based L2 appliance is in maintenance mode.

Enable maintenance mode:

switch#start maintenance
Template default will be applied. Do you want to continue?[confirm]
switch(maint-mode)#

Prompts to check:

switch(maint-mode)# configure terminal
switch(maint-mod(config)# 

Playbook to check if the config module works :

  - name: Test ios_config
    cisco.ios.ios_config:
      config:
        - hostname pikachu

Playbook to check if the command module works

   - name: Check ios_command
     cisco.ios.ios_command:
       commands:
         - show run | section hostname

Playbook to check the command module to configure terminal

   - name: Check ios_command
     cisco.ios.ios_command:
       commands:
         - configure terminal
         - hostname ash
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/cliconf
plugins/terminal

ADDITIONAL INFORMATION

#TODO

  • handle prompts
  • add tests
  • limit integration tests to not run on maintenance mode

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 41s
✔️ build-ansible-collection SUCCESS in 4m 39s
ansible-ee-integration-ios-latest FAILURE in 15m 12s (non-voting)
ansible-ee-integration-ios-stable-2.9 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-stable-2.11 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-stable-2.12 FAILURE in 15m 30s (non-voting)
ansible-ee-integration-ios-libssh-latest FAILURE in 47m 18s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.9 FAILURE in 47m 05s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.11 FAILURE in 45m 08s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.12 FAILURE in 42m 11s (non-voting)
✔️ ansible-tox-linters SUCCESS in 5m 16s

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 3m 51s
✔️ build-ansible-collection SUCCESS in 4m 13s
ansible-ee-integration-ios-latest FAILURE in 18m 06s (non-voting)
ansible-ee-integration-ios-stable-2.9 FAILURE in 20m 04s (non-voting)
ansible-ee-integration-ios-stable-2.11 FAILURE in 19m 49s (non-voting)
ansible-ee-integration-ios-stable-2.12 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-libssh-latest FAILURE in 41m 06s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.9 FAILURE in 1h 05m 03s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.11 FAILURE in 43m 23s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.12 FAILURE in 43m 46s (non-voting)
✔️ ansible-tox-linters SUCCESS in 5m 03s

@softwarefactory-project-zuul
Copy link

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 5m 01s
✔️ build-ansible-collection SUCCESS in 3m 58s
ansible-ee-integration-ios-latest NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-stable-2.9 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-stable-2.11 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-stable-2.12 FAILURE in 16m 58s (non-voting)
ansible-ee-integration-ios-libssh-latest NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.9 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.11 NODE_FAILURE in 0s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.12 FAILURE in 41m 29s (non-voting)
✔️ ansible-tox-linters SUCCESS in 5m 02s

@KB-perByte KB-perByte linked an issue Feb 1, 2023 that may be closed by this pull request
@softwarefactory-project-zuul
Copy link

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/7d61ff794b33424384991ff4871650f5

ansible-galaxy-importer RETRY_LIMIT in 15s
✔️ build-ansible-collection SUCCESS in 8m 52s
ansible-ee-integration-ios-latest FAILURE in 18m 26s (non-voting)
ansible-ee-integration-ios-stable-2.9 FAILURE in 18m 24s (non-voting)
ansible-ee-integration-ios-stable-2.11 FAILURE in 18m 35s (non-voting)
ansible-ee-integration-ios-stable-2.12 FAILURE in 17m 55s (non-voting)
ansible-ee-integration-ios-libssh-latest FAILURE in 29m 03s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.9 FAILURE in 25m 18s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.11 FAILURE in 28m 59s (non-voting)
ansible-ee-integration-ios-libssh-stable-2.12 FAILURE in 27m 10s (non-voting)
✔️ ansible-tox-linters SUCCESS in 10m 46s

@KB-perByte KB-perByte marked this pull request as draft March 27, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configuration fails when IOS XE device is in maintenance mode
1 participant