Hi,

I'm attempting to create some python scripts with cobbler APIs.
Because, API based scripts are much faster than 'cobbler xxx' commands.

Now, I have a couple of questions about cobbler API.

1. Does API support everything that is supported in 'cobbler xxx' commands?

2. How can we set 'macaddress' and 'ipaddress' to system object via API?
What's object name? Is there any pointers or good source file to know all
cobbler object name for cobbler API?

3. When if I want to update the value in some objects, we always
have to use find() as first, is it right? I mean the following code (e.g. for
updating hostname) is simplest way and reasonable?

api = api.BootAPI()
s = api.systems().find(abc)
s.hostname = 'xyz'
api.systems().add(s,with_copy=True)

Thanks
-Ihara
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to