diff --git a/02-Keyword/tsg_bfapi/PolicyObject.robot b/02-Keyword/tsg_bfapi/PolicyObject.robot index db4929d..bc200fd 100644 --- a/02-Keyword/tsg_bfapi/PolicyObject.robot +++ b/02-Keyword/tsg_bfapi/PolicyObject.robot @@ -369,3 +369,25 @@ DeletePolicyAndObjectAndVpn ... ELSE DeleteWanVpn ${wan_vpn} +DeletePolicyAndObjectAndIPpoor + [Arguments] ${policyids} ${objectids} ${wan_ippoor} + #删除策略 + 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_ippoor}"=="${EMPTY}" log no vpn to del + ... ELSE DeleteWanIpPood ${wan_ippoor} + \ No newline at end of file