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()