Description of problem: Typing command with multicast mac address gives error that mac address is incorrectly formatted, instead it should give error that mac address is out of range. Version-Release number of selected component (if applicable): 3.4.2 How reproducible: Very. Steps to Reproduce: On ovirt-shell, add a network interface and specify a mac address that is multicast: ovirt-shell# add nic --vm-identifier myvm --network-name default --name eth0 --mac-address '01:HH:EE:HH:HH:01' Actual results: =================================== ERROR ===================== status: 400 reason: Bad Request detail: MAC address must be in format "HH:HH:HH:HH:HH:HH" where H is a hexadecimal character (either a digit or A-F, case is insignificant). ========================================================== Expected results: =================================== ERROR ===================== status: 400 reason: Bad Request detail: MAC address must not be multicast address. Basically, ensure that you use a MAC address whose second character isn't an odd number. "H0:HH:HH:HH:HH:HH" ========================================================== Additional info: "help add nic" also produces no output.
Note that passing a MAC address that has the "H" character will always fail, as that isn't a valid hex character, just a placeholder used in the error message. I'm moving the bug to the backend component, as there is where the check is performed and the error message is generated.
I kinda robotically copied what I thought was an example, silly me. I think the error is better understood and explained with a working example mac address, and in the case of out of bounds, explained it is out of bounds. Thanks :)
rhevm-3.5.0-0.12.beta.el6ev.noarch
oVirt 3.5 has been released and should include the fix for this issue.