添加 策略 对象 vpn 联合删除

This commit is contained in:
朱明明
2020-08-05 17:54:28 +08:00
parent a65b8dc991
commit 5e16452209

View File

@@ -284,3 +284,27 @@ DeletePolicyAndObject1
log todeleteobj_DeletePolicyAndObject
Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del
... ELSE DeletePolicyFile1 ${url} ${profiledId}
DeletePolicyAndObjectAndVpn
[Arguments] ${policyids} ${objectids} ${wan_vpn}
#删除策略
log toDeletePolicy_DeletePolicyAndObject
${listlenth}= Get Length ${policyids}
FOR ${var} IN RANGE ${listlenth}
log ${var}
DeletePolicy ${policyids}[${var}]
END
#删除对象
log todeleteobj_DeletePolicyAndObject
Run Keyword If "${objectids}"=="${EMPTY}" log no obj to del
... ELSE DeleteObject ${objectids}
#删除文件
log todeleteobj_DeletePolicyAndObject
Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del
... ELSE DeletePolicyFile1 ${url} ${profiledId}
# 删除VPN
log todelete_wan_vpn
Run Keyword If "${wan_vpn}"=="${EMPTY}" log no vpn to del
... ELSE DeleteWanVpn ${wan_vpn}