添加策略,对象,ip池 同时删除关键字
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user