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.

本文标签: