添加 策略 对象 vpn 联合删除
This commit is contained in:
@@ -284,3 +284,27 @@ DeletePolicyAndObject1
|
|||||||
log todeleteobj_DeletePolicyAndObject
|
log todeleteobj_DeletePolicyAndObject
|
||||||
Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del
|
Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del
|
||||||
... ELSE DeletePolicyFile1 ${url} ${profiledId}
|
... 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}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user