add support for cpuset

Related PROD-23040 (PROD:23040)

Change-Id: I6cf2cb5ff66dcffb1532343a58416fb242703322
diff --git a/_modules/virtng.py b/_modules/virtng.py
index b405d59..426d611 100644
--- a/_modules/virtng.py
+++ b/_modules/virtng.py
@@ -534,6 +534,7 @@
          loader=None,
          machine=None,
          cpu_mode=None,
+         cpuset=None,
          **kwargs):
     '''
     Initialize a new vm
@@ -703,6 +704,12 @@
       xml = xml_doc.toxml()
 
     # TODO: Remove this code and refactor module, when salt-common would have updated libvirt_domain.jinja template
+    if cpuset:
+        xml_doc = minidom.parseString(xml)
+        xml_doc.getElementsByTagName("vcpu")[0].setAttribute('cpuset', cpuset)
+        xml = xml_doc.toxml()
+
+    # TODO: Remove this code and refactor module, when salt-common would have updated libvirt_domain.jinja template
     if cpu_mode:
         xml_doc = minidom.parseString(xml)
         cpu_xml = xml_doc.createElement("cpu")