Skip to content

Commit

Permalink
dcnm_vrf: IT dynamic_inventory.py small modifications
Browse files Browse the repository at this point in the history
1.  dcnm_vrf: use switch_1, switch_2, switch_3 directly
2. Add scale role to the 'if nd_role' conditional
  • Loading branch information
allenrobel committed Dec 12, 2024
1 parent ecd1849 commit a0f44c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions playbooks/files/dynamic_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@

# Placeholders if you'd rather directly set each of
# the switch vars instead of setting the switch vars
# from the switch roles above (as is done for dcnm_vrf
# below).
# from the switch roles above.
switch_1 = environ.get("ND_SWITCH_1_IP4", "10.1.1.112")
switch_2 = environ.get("ND_SWITCH_2_IP4", "10.1.1.113")
switch_3 = environ.get("ND_SWITCH_3_IP4", "10.1.1.108")
Expand All @@ -146,21 +145,19 @@
interface_3a = environ.get("ND_INTERFACE_3a", "Ethernet1/3")

if nd_role == "dcnm_vrf":
pass
# VXLAN/EVPN Fabric Name
# fabric_1
# - all tests
# switch_1
# - all tests
# - vrf capable
switch_1 = spine_1
# switch_2
# - all tests
# - vrf-lite capable
switch_2 = spine_2
# switch_3
# - merged
# - NOT vrf-lite capable
switch_3 = leaf_3
# interface_1a
# - no tests
# interface_2a
Expand All @@ -182,6 +179,8 @@
switch_2 = spine_2
# switch_3: vrf capable
switch_3 = bgw_1
elif nd_role == "scale":
pass
else:
switch_1 = leaf_1
switch_2 = spine_1
Expand Down

0 comments on commit a0f44c3

Please sign in to comment.