admin管理员组文章数量:1310385
I'm using SOLIDserverREST, the Python library for Efficient IP to manage the DDI system through API.
Below code is working perfectly for me to create a static IP address using SOLIDserverRest.
from SOLIDserverRest import *
from SOLIDserverRest import adv as sdsadv
import logging
from pprint import pprint
SDS_HOST = "x.x.x.x"
SDS_LOGIN = "xxxx"
SDS_PWD = "xxxx"
sds = sdsadv.SDS(ip_address=SDS_HOST,user=SDS_LOGIN,pwd=SDS_PWD)
try:
sds.connect(method="native")
except SDSError as e:
logging.error(e)
exit(1)
print(sds)
#Bind a host's mac address to a static IP address using dhcp_static_create
parameters = {"dhcphost_name":"PC-KW-18048", "dhcphost_addr":"xx.xx.xx.xx","static_mac_addr":"xx:xx:xx:xx:xx:xx", "dhcp_id":"xx", "dhcpscope_id":"xx"}
rest_answer = sds.query("dhcp_static_create", parameters)
pprint (rest_answer)
The only problem is that in the GUI of Efficient IP, there's a field called 'Request Details' which serves as the comment or remark for the static IP address the user creates, I read thru the official repository of SOLIDserverRest on gitlab, specifically the 'dhcp_static_create.md', but I can't find any parameter that's related to creating the 'Request Details'.
.md
And that's same case in 'dhcp_static_update.md':
.md
Appreciate if anyone could shed a light on my problem.
本文标签:
版权声明:本文标题:How to add 'Request Details' using SOLIDserverREST (Python library of Efficient IP) for static IP creation? - St 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741816814a2399125.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论