Validation error should be raised on creating alias interface when primary interface doesn't have any device identifier set
Description of problem:
I was trying to configure an alias interface while provisioning a virtual host. I defined an alias interface, however didn't set the identifier for first/primary interface. So alias configuration failed like below:
[root@sghai ~]# cat /etc/sysconfig/network-scripts/ifcfg-.1
[root@sghai ~]# cat /etc/sysconfig/network-scripts/ifcfg-_0
But user got to know only when host was provisioned successfully. So user should get a validation error if user doesn't/forgot to set the identifier for primary interface while creating alias of it.
Version-Release number of selected component (if applicable):
sat6.2 beta snap6.2
Steps to Reproduce:
1. define a static subnet
2. create new host ( do not specify identifier for primary interface)
3. add an alias interface and specify primary interface's identifier under attached_to interface like eth0 while creating alias interface
alias interface configuration sliently failed, no error to user, but an incorrect device name as shown above in alias interface config file.
user should get a validation error that 'Interface to which alias interface going to attach should have proper device identifier set.