-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOTE: This release is not compatible with earlier releases due to changes in the underlying data structure. Changes: 1. Converted entries in roles/ndfc_common/vars/main.yml from lists to dictionaries. With dictionaries, entries can be reordered without ill effects. 2. Removed several roles, including: ndfc_device_query - Replaced with ndfc_device_info_get ndfc_device_query_all - No replacement. The same result can be obtained with ndfc_device_info_get ndfc_network_deleted_all - Replaced with ndfc_*_network_deleted_all (see below) ndfc_policy_vrf_rt_import - Replaced with ndfc_policy_vrf_rt_import_evpn ndfc_policy_vrf_rt_import_loop - Replaced with ndfc_policy_vrf_rt_import_evpn_loop 3. Renamed roles and their corresponding playbooks: ndfc_rest_fabric_create -> ndfc_rest_fabric_switch_create 4. Added several roles, including ndfc_device_config_get - retrieve locally-defined configuration for device ndfc_device_info_get - retrieve remote (NDFC) configuration for device ndfc_device_ipv4_address_local_get - retrieve locally-defined device ipv4_address ndfc_device_ipv4_address_remote_get - retrieve remote (NDFC) value for device ipv4_address ndfc_fabric_config_get - retrieve locally-defined configuration for fabric ndfc_network_config_get - retrieve locally-defined configuration for network ndfc_network_deleted_external_fabric_all - delete all networks in an external fabric ndfc_network_deleted_msd_fabric_all - delete all networks in a msd fabric ndfc_network_deleted_switch_fabric_all - delete all networks in a switch fabric ndfc_rest_fabric_active_fabrics_get - return list of active fabrics ndfc_vrf_config_get - retrieve locally-defined configuration for vrf 5. All roles saw some changes to accommodate the new data structure and many roles were simplified. 6. Renamed playbook: example_ndfc_rest_fabric_create_msd_with_children.yml -> example_ndfc_rest_fabric_msd_create_with_children.yml
- Loading branch information
1 parent
33164a3
commit 80e340f
Showing
160 changed files
with
2,088 additions
and
1,875 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example_ndfc_device_config_get.yml | ||
# Query local vars for device configuration | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_device_config_get | ||
vars: | ||
device_name: leaf_1 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "device_config: {{ device_config }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# example_ndfc_device_generated_configs_get.yml | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_device_generated_configs_get | ||
vars: | ||
fabric_name: f1 | ||
device_name: leaf_1 | ||
tasks: | ||
- block: | ||
- debug: | ||
var: device_generated_configs | ||
when: "device_generated_configs != ''" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# example_ndfc_device_ipv4_address_local_get.yml | ||
# Query device entry in ndfc_common with fabric_name and device_name | ||
# and print the switch's ipv4 address based on the vars config in ndfc_common | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_device_ipv4_address_local_get | ||
vars: | ||
fabric_name: f2 | ||
device_name: leaf_1 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "device_ipv4_address: {{ device_ipv4_address }}" | ||
when: "device_ipv4_address != ''" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# example_ndfc_device_ipv4_address_remote_get.yml | ||
# Query NX-OS switch associated with fabric_name and device_name | ||
# and print the switch's ipv4 address based on remote device's configuration | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_device_ipv4_address_remote_get | ||
vars: | ||
fabric_name: f2 | ||
device_name: leaf_1 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "device_ipv4_address: {{ device_ipv4_address }}" | ||
when: "device_ipv4_address != ''" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example_ndfc_fabric_config_get.yml | ||
# Query local vars for fabric configuration | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_fabric_config_get | ||
vars: | ||
fabric_name: f1 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "fabric_config: {{ fabric_config }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example_ndfc_network_config_get.yml | ||
# Retrieve configuration of network_name from vars defined in ndfc_common | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_network_config_get | ||
vars: | ||
network_name: f1_n1111 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "network_config: {{ network_config }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ | |
roles: | ||
- ndfc_network_deleted | ||
vars: | ||
fabric_name: MSD | ||
network_name: n1111 | ||
network_name: msd_n1111 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# example_ndfc_network_deleted_external_fabric_all.yml | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_network_deleted_external_fabric_all | ||
vars: | ||
fabric_name: external |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# example_ndfc_network_deleted_msd_fabric_all.yml | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_network_deleted_msd_fabric_all | ||
vars: | ||
fabric_name: MSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# example_ndfc_network_deleted_switch_fabric_all.yml | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_network_deleted_switch_fabric_all | ||
vars: | ||
fabric_name: f1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_network_replaced | ||
vars: | ||
network_name: f1_n1111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
roles: | ||
- ndfc_network_replaced_all | ||
vars: | ||
fabric_name: f1 | ||
fabric_name: MSD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,5 @@ | |
roles: | ||
- ndfc_rest_device_set_role | ||
vars: | ||
fabric_name: f1 | ||
device_name: leaf_1 | ||
role: leaf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example_ndfc_device_serial_number_get.yml | ||
# Query NX-OS switch associated with fabric_name and device_name | ||
# and print the switch's serial number | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_rest_fabric_active_fabrics_get | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "active_fabrics: {{ active_fabrics }}" | ||
when: "active_fabrics != ''" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
roles: | ||
- ndfc_rest_fabric_delete | ||
vars: | ||
fabric_name: f1 | ||
fabric_name: f3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
roles: | ||
- ndfc_rest_fabric_external_create | ||
vars: | ||
fabric_name: sn_fabric_1 | ||
fabric_name: ext_fabric_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# example_ndfc_rest_fabric_switch_create.yml | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_rest_fabric_switch_create | ||
vars: | ||
fabric_name: f1 |
4 changes: 2 additions & 2 deletions
4
example_ndfc_rest_fabric_create_f1.yml → ...ple_ndfc_rest_fabric_switch_create_f1.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
example_ndfc_rest_fabric_create_f2.yml → ...ple_ndfc_rest_fabric_switch_create_f2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
roles: | ||
- ndfc_vpc_interface_merged_all | ||
vars: | ||
fabric_name: f1 | ||
vpc_name: vpc1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# example_ndfc_vrf_config_get.yml | ||
# Query local vars for vrf configuration | ||
--- | ||
- hosts: ndfc | ||
gather_facts: false | ||
roles: | ||
- ndfc_vrf_config_get | ||
vars: | ||
vrf_name: msd_v1 | ||
tasks: | ||
- block: | ||
- debug: | ||
msg: "vrf_config: {{ vrf_config }}" |
Oops, something went wrong.