WAN NAT IP池管理接口 关键字与实例
This commit is contained in:
@@ -248,4 +248,17 @@ WanVpn
|
||||
${data2} set to dictionary ${dict} list=${wanvpnlist}
|
||||
[Return] ${data2}
|
||||
|
||||
|
||||
WanNatIpPood
|
||||
[Arguments] ${must_parameter} ${wan_nat_ip_iplist}
|
||||
# 编写iplist json格式
|
||||
${wan_nat_ip_iplist} Create Dictionary profileId=${must_parameter}[profileId] profileName=${must_parameter}[profileName] ipList=${wan_nat_ip_iplist} isValid=1
|
||||
#编写二层list内地格式
|
||||
${wan_nat_ip_list} Create List ${wan_nat_ip_iplist}
|
||||
# 判断sjon是用于修改还是新增
|
||||
${opAction} run keyword if '${must_parameter}[profileId]'=="" Set Variable add
|
||||
... ELSE Set Variable update
|
||||
#编写最外面的格式
|
||||
${wan_nat_ip_pood_data} Create Dictionary opAction=${opAction} returnData=1 list=${wan_nat_ip_list}
|
||||
# 返回请求json
|
||||
log ${wan_nat_ip_pood_data}
|
||||
[Return] ${wan_nat_ip_pood_data}
|
||||
|
||||
Reference in New Issue
Block a user