-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provided workaround for SONiC mgmt vrf bug (#146)
* Provided workaround for SONiC mgmt vrf bug * Addressed review comments Co-authored-by: Shade Talabi <[email protected]>
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 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,27 @@ | ||
--- | ||
# Execution of a task that adds or deletes the configuration of the | ||
# management VRF ("mgmt") causes a disruption of the | ||
# management interface connection on which playbook configuration | ||
# commands are executing. As a result, playbook execution is aborted | ||
# unless the management VRF configuration task is constructed to | ||
# ignore errors. | ||
# | ||
# This example demonstrates how to combine tasks that configure other | ||
# resource modules ("sonic_vrfs", in this case) with tasks that add or remove | ||
# "management VRF" configuration. | ||
|
||
- name: Example playbook of configuring with mgmt_vrf_on and mgmt_vrf_off tasks. | ||
hosts: datacenter | ||
gather_facts: False | ||
connection: httpapi | ||
collections: | ||
- dellemc.enterprise_sonic | ||
tasks: | ||
- include_tasks: mgmt_vrf_on.yaml | ||
- name: Add VLANs | ||
sonic_vlans: | ||
config: | ||
- vlan_id: 11 | ||
- vlan_id: 12 | ||
state: merged | ||
- include_tasks: mgmt_vrf_off.yaml |
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,6 @@ | ||
- name: Delete mgmt VRF configuration | ||
sonic_vrfs: | ||
config: | ||
- name: mgmt | ||
state: deleted | ||
ignore_errors: yes |
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,6 @@ | ||
- name: Create mgmt VRF configuration | ||
sonic_vrfs: | ||
config: | ||
- name: mgmt | ||
state: merged | ||
ignore_errors: yes |