Oh, nevermind... sorry. Er.. typing a question to a mailing list does
sharpen one's understanding of one's own question... (palm face)
I looked in the source code of remote.py and found
server.modify_system(sid, 'modify_interface', {
"macaddress-eth0" : "AA:BB:CC:EE:EE:EE",
"ipaddress-eth0" : "192.168.10.50",
"gateway-eth0" : "192.168.10.1",
"virtbridge-eth0" : "virbr0",
"dnsname-eth0" : "foo.example.com",
"static-eth0" : False,
"dhcptag-eth0" : "section2",
"staticroutes-eth0" : "a:b:c d:e:f"
}, token)
and, lo it worked.
Thanks all!
-Dylan
On Fri, Sep 20, 2013 at 12:35 PM, Dylan Martin <
[email protected]> wrote:
> Hi all.
>
> I like to populate cobbler from a custom script and I've discovered that
> it's not setting virt-bridge. I've done some poking around and tried a few
> things but no luck.
>
> Most network interface changes take the form of:
>
> server.modify_system(system_id,'modify_interface', {
> "macaddress-eth0" : "01:02:03:04:05:06",
> "ipaddress-eth0" : "192.168.0.1",
> "dnsname-eth0" : "hostname.example.com",
> }, token)
>
> I've tried 'virt-bridge' and 'virt-bridge-eth0' If I try
> 'virt-bridge-eth0' it complains and dies. If I try 'virt-bridge' it
> doesn't complain, but it doesn't work either.
>
> The VMs I'm trying to build with cobbler all have two interfaces which
> attach to two different bridges. If it is just 'virt-bridge' and I'm doing
> something else wrong, how do I tell it which interface to modify?
>
> Thanks!
> -Dylan
>
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler