From 66107ca4de80bf2d1099541591a152a6c6553a66 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 22 Feb 2023 20:07:09 +0000 Subject: [PATCH] vrf(rd): the rd parameter can pass directly when create vrf --- plugins/modules/aoscx_vrf.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugins/modules/aoscx_vrf.py b/plugins/modules/aoscx_vrf.py index 581242b..54b8dc8 100644 --- a/plugins/modules/aoscx_vrf.py +++ b/plugins/modules/aoscx_vrf.py @@ -120,17 +120,9 @@ def main(): if state == "create": # Create VRF with incoming attributes - vrf = device.vrf(vrf_name) + vrf = device.vrf(vrf_name, rd) modified = vrf.was_modified() - # Configure RD (Route Distinguisher) - if rd: - vrf.rd = rd - - # Apply VRF Configuration Change - vrf.apply() - modified |= vrf.was_modified() - # Changed result["changed"] = modified