mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Enforcing NXAPI default HTTP behavior (#41817)
* nxos_nxapi http default behavior * Use nxos_nxapi module in prepare_nxos_tests * Refactor nxos_nxapi configure test to use yaml block * Extend nxos_nxapi https & http test cases * Removed NXOS internal release naming * Resolved ansibot sanity errors * Fix typo in prepare_nxos_tests * Address PR comments * Shippable indicates this is no longer needed * Add port change logic and testing
This commit is contained in:
parent
b87e1a023d
commit
db7300904d
17 changed files with 279 additions and 64 deletions
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
- name: Toggle feature nxapi - Enable
|
||||
- name: Enable Feature Privilage
|
||||
nxos_config:
|
||||
lines:
|
||||
- feature nxapi
|
||||
- feature privilege
|
||||
connection: network_cli
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Set nxapi to default state
|
||||
- name: Enable Feature NXAPI
|
||||
nxos_nxapi:
|
||||
state: present
|
||||
connection: network_cli
|
||||
|
||||
# Gather the list of interfaces on this device and make the list
|
||||
|
@ -93,6 +93,7 @@
|
|||
# 8.0(1)
|
||||
# 7.3(0)D1(1)
|
||||
# 7.0(3)IHD8(1)
|
||||
- set_fact: major_version="{{ image_version[0:3] }}"
|
||||
- set_fact: imagetag="{{ image_version[0:3] }}"
|
||||
when: image_version is search("\d\.\d\(\d\)")
|
||||
- set_fact: imagetag="{{ image_version[6:8] }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue