restapi: The add vm/template nic api requires name

The patch adds the nic name as a mandatory field for
adding a nic to a vm or template.

Change-Id: I36db94eb18bd5250dbd346886aead2f843d9a0ab
Signed-off-by: Moti Asayag <masayag@redhat.com>