Create common function to generate interface guest XML

And use it on vmtemplate.py and model/vmifaces.py to make sure in both
cases the same XML structure will be used.

Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com>