method | |
netadd | 添加网段 |
netdelete | 删除网段 |
参数 | 说明 |
ip | IP/子网位,如192.168.1.1/24 |
netmask | 子网掩码,如255.255.255.0(删除时不传) |
gateway | 网关(删除时不传) |
返回:
正常:
<?xml version="1.0" encoding="GB2312"?>
<root>
<status>
<code>1</code>
<message>OK</message>
<created_at>20161101140211</created_at>
</status>
<root>
失败:
<?xml version="1.0" encoding="GB2312"?>
<root>
<status>
<code>-1</code>
<message>checksum Validation failed</message>
<created_at>20161101140211</created_at>
</status>
<root>