From ddf3ba01d24af424ed5c9770847792d8661760f8 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Thu, 9 Aug 2018 02:27:22 +0200 Subject: [PATCH] aci_fabric_node: Fix idempotency (with newer ACI ?) (#43848) --- lib/ansible/modules/network/aci/aci_fabric_node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/aci/aci_fabric_node.py b/lib/ansible/modules/network/aci/aci_fabric_node.py index 489fd4239cb..f27fbdf8da2 100644 --- a/lib/ansible/modules/network/aci/aci_fabric_node.py +++ b/lib/ansible/modules/network/aci/aci_fabric_node.py @@ -251,7 +251,10 @@ def main(): name=switch, nodeId=node_id, podId=pod_id, - rn='nodep-{0}'.format(serial), + # NOTE: Originally we were sending 'rn', but now we need 'dn' for idempotency + # FIXME: Did this change with ACI version ? + dn='uni/controller/nodeidentpol/nodep-{0}'.format(serial), + # rn='nodep-{0}'.format(serial), role=role, serial=serial, )