forked from ansible-collections/dellemc.enterprise_sonic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ansible-lint errors in playbooks directory (ansible-collections#501)
* fix ansible-lint errors in playbooks/bgp_l3_fabric and playbooks/common_examples directories * add changelog * update changelog * add a name line to clos-fabric..yaml file * remove playbooks/common_examples fixes from PR * update changelog * update clos-fabric file * delete extra period * remove the second "sonic" in the FQCN for clos-fabric file * update indentation * update indentation * fix indentation
- Loading branch information
1 parent
17df947
commit 6e673f8
Showing
6 changed files
with
230 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
trivial: | ||
- playbooks - Fix ansible lint failures in playbooks/bgp_l3_fabric directory (https://github.com/ansible-collections/dellemc.enterprise_sonic/pull/501). |
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 |
---|---|---|
@@ -1,43 +1,42 @@ | ||
--- | ||
- hosts: datacenter | ||
- name: "Configure BGP clos fabric options after configuring prerequisite options" | ||
hosts: datacenter | ||
gather_facts: false | ||
connection: httpapi | ||
gather_facts: no | ||
collections: | ||
- dellemc.enterprise_sonic | ||
tasks: | ||
- name: Create Interfaces | ||
sonic_interfaces: | ||
config: "{{sonic_interfaces}}" | ||
when: sonic_interfaces is defined and sonic_interfaces | ||
- name: Create Interfaces | ||
dellemc.enterprise_sonic.sonic_interfaces: | ||
config: "{{ sonic_interfaces }}" | ||
when: sonic_interfaces is defined and sonic_interfaces | ||
|
||
- name: Create L3 Interfaces | ||
sonic_l3_interfaces: | ||
config: "{{sonic_l3_interfaces}}" | ||
when: sonic_l3_interfaces is defined and sonic_l3_interfaces | ||
- name: Create L3 Interfaces | ||
dellemc.enterprise_sonic.sonic_l3_interfaces: | ||
config: "{{ sonic_l3_interfaces }}" | ||
when: sonic_l3_interfaces is defined and sonic_l3_interfaces | ||
|
||
- name: "Push configs for clos-fabric usecase" | ||
vars: | ||
ansible_connection: network_cli | ||
sonic_config: | ||
src: clos_fabric_cfg.j2 | ||
register: result | ||
- name: "Push configs for clos-fabric usecase" | ||
vars: | ||
ansible_connection: network_cli | ||
dellemc.enterprise_sonic.sonic_config: | ||
src: clos_fabric_cfg.j2 | ||
register: result | ||
|
||
- name: Create BGP configuration | ||
sonic_bgp: | ||
config: "{{sonic_bgp}}" | ||
when: sonic_bgp is defined and sonic_bgp | ||
- name: Create BGP configuration | ||
dellemc.enterprise_sonic.sonic_bgp: | ||
config: "{{ sonic_bgp }}" | ||
when: sonic_bgp is defined and sonic_bgp | ||
|
||
- name: Create BGP AF configuration | ||
sonic_bgp_af: | ||
config: "{{sonic_bgp_af}}" | ||
when: sonic_bgp_af is defined and sonic_bgp_af | ||
- name: Create BGP AF configuration | ||
dellemc.enterprise_sonic.sonic_bgp_af: | ||
config: "{{ sonic_bgp_af }}" | ||
when: sonic_bgp_af is defined and sonic_bgp_af | ||
|
||
- name: Create BGP Neighbors configuration | ||
sonic_bgp_neighbors: | ||
config: "{{sonic_bgp_neighbors}}" | ||
when: sonic_bgp_neighbors is defined and sonic_bgp_neighbors | ||
- name: Create BGP Neighbors configuration | ||
dellemc.enterprise_sonic.sonic_bgp_neighbors: | ||
config: "{{ sonic_bgp_neighbors }}" | ||
when: sonic_bgp_neighbors is defined and sonic_bgp_neighbors | ||
|
||
- name: Create BGP Neighbors AF configuration | ||
sonic_bgp_neighbors_af: | ||
config: "{{sonic_bgp_neighbors_af}}" | ||
when: sonic_bgp_neighbors_af is defined and sonic_bgp_neighbors_af | ||
- name: Create BGP Neighbors AF configuration | ||
dellemc.enterprise_sonic.sonic_bgp_neighbors_af: | ||
config: "{{ sonic_bgp_neighbors_af }}" | ||
when: sonic_bgp_neighbors_af is defined and sonic_bgp_neighbors_af |
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
Oops, something went wrong.