From e5cdf95cd7848da58211d94a745818a8e026511e Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Thu, 16 Feb 2023 11:31:30 +0000 Subject: [PATCH] vrf: Add rd parameter Fix #56 --- plugins/modules/aoscx_vrf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/modules/aoscx_vrf.py b/plugins/modules/aoscx_vrf.py index 6108081..67bcd07 100644 --- a/plugins/modules/aoscx_vrf.py +++ b/plugins/modules/aoscx_vrf.py @@ -61,6 +61,7 @@ def main(): module_args = dict( name=dict(type="str", required=True), + rd=dict(type="str", required=False), state=dict(default="create", choices=["create", "delete"]), ) # ArubaModule @@ -71,6 +72,7 @@ def main(): # Set Variables vrf_name = ansible_module.params["name"] state = ansible_module.params["state"] + rd = ansible_module.params["rd"] result = dict(changed=False) @@ -102,6 +104,8 @@ def main(): if state == "create": # Create VRF with incoming attributes vrf = device.vrf(vrf_name) + vrf.rd = rd + vrf.apply() # Changed result["changed"] = vrf.was_modified()