nxos_vtp_*: Fixes n6k issues (#55737)

* Add n6k support for nxos_vtp_domain

* Add n6k support for nxos_vtp_version

* Add n6k support for nxos_vtp_password

* Fix shippable error
This commit is contained in:
Mike Wiebe 2019-05-10 01:24:51 -04:00 committed by Trishna Guha
parent dd0b0ae47b
commit d55c0cf8dc
6 changed files with 101 additions and 50 deletions

View file

@ -3,7 +3,18 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- set_fact: vtp_run="true"
- set_fact: vtp_run="false"
when: platform is search('N3K-F|N9K-F')
- block:
- name: disable feature vtp
nxos_feature:
feature: vtp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: enable feature vtp
nxos_feature:
feature: vtp
@ -28,6 +39,8 @@
that:
- "result.changed == false"
when: vtp_run
always:
- name: disable feature vtp
nxos_feature:

View file

@ -3,7 +3,18 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- set_fact: vtp_run="true"
- set_fact: vtp_run="false"
when: platform is search('N3K-F|N9K-F')
- block:
- name: disable feature vtp
nxos_feature:
feature: vtp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: enable feature vtp
nxos_feature:
feature: vtp
@ -49,6 +60,8 @@
- assert: *false
when: vtp_run
always:
- name: disable feature vtp
nxos_feature:

View file

@ -3,7 +3,18 @@
- debug: msg="Using provider={{ connection.transport }}"
when: ansible_connection == "local"
- set_fact: vtp_run="true"
- set_fact: vtp_run="false"
when: platform is search('N3K-F|N9K-F')
- block:
- name: disable feature vtp
nxos_feature:
feature: vtp
provider: "{{ connection }}"
state: disabled
ignore_errors: yes
- name: enable feature vtp
nxos_feature:
feature: vtp
@ -28,6 +39,8 @@
that:
- "result.changed == false"
when: vtp_run
always:
- name: disable feature vtp
nxos_feature: