添加策略,对象,ip池 同时删除关键字

This commit is contained in:
朱明明
2020-08-11 15:20:07 +08:00
parent 3a2a9cb816
commit 8407791dc7

View File

@@ -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}