【发布时间】:2015-09-09 18:48:10
【问题描述】:
我正在尝试使用 xmlrpcapi 在我的 cobbler 服务器上设置系统的 eth0 接口的 mac 地址。
我可以设置“comment”之类的简单字段,但我似乎无法设置mac地址,可能是因为我不知道要引用的路径。所以这行得通:
handle = server.get_system_handle(system, token)
server.modify_system(handle, 'comment', 'my comment', token)
server.save_system(handle, token)
但是如果我想设置 interfaces['eth0'][mac_address'] 我应该使用什么属性名称?
【问题讨论】:
标签: python xmlrpcclient