Skip to content

Commit

Permalink
vrf: Add rd parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Sep 7, 2023
1 parent 76d4c4c commit 61e78bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/modules/aoscx_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def get_argument_spec():
"type": "str",
"required": True,
},
"rd": {
"type": "str",
"required": False,
},

"state": {
"type": "str",
"default": "create",
Expand All @@ -85,6 +90,7 @@ def main():
# Get playbook's arguments
vrf_name = ansible_module.params["name"]
state = ansible_module.params["state"]
rd = ansible_module.params["rd"]

result = dict(changed=False)

Expand All @@ -99,6 +105,7 @@ def main():
# device = Device(session)
Vrf = session.api.get_module_class(session, "Vrf")
vrf = Vrf(session, vrf_name)
vrf.rd = rd
modified = False

try:
Expand Down

0 comments on commit 61e78bf

Please sign in to comment.