[Users] VM MAC-Ranges and setting custom MACs via API

Sven Kieske S.Kieske at mittwald.de
Fri Jan 3 14:34:48 UTC 2014


Hi,

I got some questions regarding the MAC-Range in the engine
and how to utilize the set custom mac feature via API:

We want to set a custom MAC per VM via REST-API (JSON)
The RSDL tells me, that this should be possible in general.

However, I have two questions:

Must the specified custom MAC be within the range defined in
engine?

I suppose not, as this range should just be a pool
to take MACs from when engine itself acquires one for a vm.
Also some users in IRC could use imported vms
with custom macs, but using REST might yield different results?

Does this work via JSON in ovirt-engine 3.3.2 ?

I just learned that the JSON implementation is not
feature complete until 3.4. so I wonder if I can use
JSON instead of XML to achieve this.

I can not wait for the 3.4. release anyway.

We had so far no problem with using JSON beside a nasty
Cloud-Init (documentation)bug (BZ 1045484)
and we don't want to rewrite all
our code to generate XML instead
of JSON if we can avoid it.

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen


More information about the Users mailing list