File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3772,7 +3772,8 @@ def push_to_remote(self, is_rollback=False):
3772
3772
msg = f"Invalid Response from Controller. { resp } "
3773
3773
self .module .fail_json (msg = msg )
3774
3774
elif resp ["DATA" ] != []:
3775
- msg = "VRF has associated network attachments. "
3775
+ msg = f"{ vrf_name } in fabric: { self .fabric } has associated network attachments. "
3776
+ self .log .debug ("%s. Number of networks: %d" , msg , len (resp ['DATA' ]))
3776
3777
msg += "Please remove the network attachments "
3777
3778
msg += "before deleting the VRF. (maybe using dcnm_network module)"
3778
3779
self .module .fail_json (msg = msg )
@@ -3810,7 +3811,7 @@ def wait_for_vrf_del_ready(self, vrf_name="not_supplied"):
3810
3811
for vrf in self .diff_delete :
3811
3812
ok_to_delete = False
3812
3813
path = self .paths ["GET_VRF_ATTACH" ].format (self .fabric , vrf )
3813
- retry_count = 20
3814
+ retry_count = max ( 100 // self . WAIT_TIME_FOR_DELETE_LOOP , 1 )
3814
3815
while not ok_to_delete :
3815
3816
resp = dcnm_send (self .module , "GET" , path )
3816
3817
ok_to_delete = True
You can’t perform that action at this time.
0 commit comments