aci_switch_policy_vpc_protection_group: Fix idempotency (#45091)

This commit is contained in:
Dag Wieers 2018-09-03 16:39:39 +02:00 committed by GitHub
commit 6faf400621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 13 deletions

View file

@ -255,14 +255,12 @@ def main():
class_config=dict(
name=protection_group,
id=protection_group_id,
rn='expgep-{0}'.format(protection_group),
),
child_configs=[
dict(
fabricNodePEp=dict(
attributes=dict(
id='{0}'.format(switch_1_id),
rn='nodepep-{0}'.format(switch_1_id),
),
),
),
@ -270,7 +268,6 @@ def main():
fabricNodePEp=dict(
attributes=dict(
id='{0}'.format(switch_2_id),
rn='nodepep-{0}'.format(switch_2_id),
),
),
),