Description of problem: The validation on the IP address field is not complete, For example I can set IP address of 01.01.01.01 and this is not valid IP address. After apply and then open SetupNetworks again the static checkbox is selected but with empty IP address. Version-Release number of selected component (if applicable): rhevm-3.1.0-13.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1.Open SetupNetwork attache network to interface and set BOOTPROTO to static. Enter IP address 01.01.01.01 > Apply Actual results: Can set IP address of 01.01.01.01 Expected results: Should get error about wrong IP address.
Created attachment 607137 [details] engine.log
Created attachment 607138 [details] vdsm.log
I'd argue 01.01.01.01 is a legit ip address (both windows and linux accept it). not sure why ipcalc doesn't MainProcess|Thread-54412::INFO::2012-08-27 09:12:54,922::configNetwork::69::root::(ifup) Error adding address 01.01.01.01 for VM_VLAN_12. MainProcess|Thread-54412::WARNING::2012-08-27 09:12:54,923::configNetwork::71::root::(ifup) ipcalc: bad IPv4 address: 01.01.01.01 ipcalc: bad IPv4 address: 01.01.01.01 ipcalc: bad IPv4 address: 01.01.01.01 Error: an inet prefix is expected rather than "01.01.01.01/". bind: Cannot assign requested address