Skip to content

Commit

Permalink
Fixed argspec for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Feb 16, 2024
1 parent cbd11a9 commit 9c4daa5
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions plugins/modules/ios_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,12 +887,37 @@ def check_declarative_intent_params(want, module, result):

def main():
"""main entry point for module execution"""
address_family_spec = dict(
afi=dict(type="str"),
mdt=dict(type="dict", options=dict(
overlay=dict(type="dict", options=dict(
use_bgp=dict(type="dict", options=dict(
enable=dict(type="bool"),
spt_only=dict(type="bool"),
)),
)),
auto_discovery=dict(type="dict", options=dict(
vxlan=dict(type="dict", options=dict(
enable=dict(type="bool"),
inter_as=dict(type="bool"),
)),
)),
default=dict(type="dict", options=dict(
vxlan_mcast_group=dict(type="str"),
)),
data=dict(type="dict", options=dict(
vxlan_mcast_group=dict(type="str"),
threshold=dict(type="str"),
)),
)),
)

argument_spec = dict(
vrfs=dict(type="list", elements="raw"),
name=dict(),
description=dict(),
address_family=dict(type="list", elements="dict"),
rd=dict(),
name=dict(type="str"),
description=dict(type="str"),
address_family=dict(type="list", elements="dict", options=address_family_spec),
rd=dict(type="str"),
route_export=dict(type="list", elements="str"),
route_import=dict(type="list", elements="str"),
route_both=dict(type="list", elements="str"),
Expand Down

0 comments on commit 9c4daa5

Please sign in to comment.