From a0f44c37e4a3b7426c0dff57481587fc7a463601 Mon Sep 17 00:00:00 2001 From: Allen Robel Date: Wed, 11 Dec 2024 16:46:07 -1000 Subject: [PATCH] dcnm_vrf: IT dynamic_inventory.py small modifications 1. dcnm_vrf: use switch_1, switch_2, switch_3 directly 2. Add scale role to the 'if nd_role' conditional --- playbooks/files/dynamic_inventory.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/playbooks/files/dynamic_inventory.py b/playbooks/files/dynamic_inventory.py index a5abf16f7..6f63bffc4 100755 --- a/playbooks/files/dynamic_inventory.py +++ b/playbooks/files/dynamic_inventory.py @@ -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") @@ -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 @@ -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