Just because i was hit by it today.

You should create a dictionary for the interface and pass the same over xmlrpc.
    eth0_ip='1.1.1.1'
    eth0_intf = { "ipaddress-eth0" : eth0_ip,
                  "static-eth0" :  1}
    server.modify_system(sysid, 'modify_interface', eth0_intf, token)


the full description of the dictionary is available at
"/usr/lib/python2.4/site-packages/cobbler/remote.py"

thanks to the thread
https://fedorahosted.org/pipermail/cobbler/2009-September/005050.html

HTH
Chandan Dutta Chowdhury


On Thu, Aug 11, 2011 at 12:07 PM, Thomas Ewert
<[email protected]> wrote:
> I am developping a webinterface for a customer to set up new systems
> in cobbler. I am using the xmlrpc.
>
> using it in that way:
>
> .......
> obj = server.new_system(token)
> server.modify_system(obj,"name",bezeichnung, token)
> server.modify_system(obj,"profile",profil, token)
> server.modify_system(obj,"mgmt_classes",[ application ], token)
> server.modify_system(obj,"comment", comment , token)
>
> .............................
>
> Now I have the problem to set the netmask for a interface (eth0, eth1...)
>
> Can anyone help please??
>
> For Info: Ilearned python by my own about 3 weeks ago and also cobbler.
>
> BR from Munich
>
> Tom
>
> --
> Thomas Ewert
> Birkenweg 11
> 82291 Mammendof
> 0178 8855 733
> [email protected]
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to