Skip to content

Instantly share code, notes, and snippets.

View allenrobel's full-sized avatar

Allen Robel allenrobel

View GitHub Profile
@allenrobel
allenrobel / dcnm_fabric.png
Last active June 25, 2024 16:31
dcnm_fabric.py code flow
dcnm_fabric.png
@allenrobel
allenrobel / gist:c74483f61dee6337b209288ae257ed37
Last active June 3, 2024 22:18
dcnm_maintenance_mode merged state output
(.venv) AROBEL-M-G793% ansible-playbook dcnm_maintenance_mode_merged_leaf_maintenance_spine_normal.yaml -i inventory
PLAY [ndfc] *********************************************************************************************************************************************************************************************************************************************************
TASK [Configure switch mode] ****************************************************************************************************************************************************************************************************************************************
changed: [ndfc1]
TASK [debug] ********************************************************************************************************************************************************************************************************************************************************
ok: [ndfc1] => {
"result": {
@allenrobel
allenrobel / gist:2ff505dd0a1f7823687d2930f053ff06
Last active June 3, 2024 22:15
dcnm_maintenance_mode_query_state_output
(.venv) AROBEL-M-G793% ansible-playbook dcnm_maintenance_mode_query.yaml -i inventory
PLAY [ndfc] *********************************************************************************************************************************************************************************************************************************************************
TASK [Query switch mode] ********************************************************************************************************************************************************************************************************************************************
ok: [ndfc1]
TASK [debug] ********************************************************************************************************************************************************************************************************************************************************
ok: [ndfc1] => {
"result": {
@allenrobel
allenrobel / gist:c8b7762524d39a4f2c5638cc093fa30a
Last active May 2, 2022 21:32
Debug Output: dcnm_vrf - Omission of Loopback Routing Tag during VRF creation causes later issue when editing VRF in NDFC
(py310) foobar % ansible-playbook -vvv example_ndfc_vrf_replaced.yml --ask-vault-pass -i inventory
ansible-playbook [core 2.12.4]
config file = /Users/foobar/tmp_ndfc/ndfc-roles/ansible.cfg
configured module search path = ['/Users/foobar/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /Users/foobar/py310/lib/python3.10/site-packages/ansible
ansible collection location = /Users/foobar/.ansible/collections:/usr/share/ansible/collections
executable location = /Users/foobar/py310/bin/ansible-playbook
python version = 3.10.3 (v3.10.3:a342a49189, Mar 16 2022, 09:34:18) [Clang 13.0.0 (clang-1300.0.29.30)]
jinja version = 3.0.3
libyaml = True