Skip to content

Commit

Permalink
vrf(rd): the rd parameter can pass directly when create vrf
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Apr 19, 2023
1 parent 9af982f commit 66107ca
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions plugins/modules/aoscx_vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 66107ca

Please sign in to comment.