예제 #1
0
파일: vmtemplate.py 프로젝트: sdnnfv/kimchi
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_info = self.info.get('cpu_info')
     if cpu_info is not None:
         cpu_topo = cpu_info.get('topology')
     return get_cpu_xml(self.info.get('cpus'),
                        self.info.get('memory') << 10, cpu_topo)
예제 #2
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_info = self.info.get('cpu_info')
     if cpu_info is not None:
         cpu_topo = cpu_info.get('topology')
     return get_cpu_xml(0,
                        self.info.get('memory') << 10,
                        cpu_topo)
예제 #3
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_topo = self.info.get('cpu_info', {}).get('topology', {})
     return get_cpu_xml(0, (self.info.get('memory').get('current')) << 10,
                        cpu_topo)
예제 #4
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_topo = self.info.get('cpu_info', {}).get('topology', {})
     return get_cpu_xml(0, (self.info.get('memory').get('current')) << 10,
                        cpu_topo)
예제 #5
0
 def _get_cpu_xml(self):
     # Include CPU topology, if provided
     cpu_topo = self.info.get("cpu_info", {}).get("topology", {})
     return get_cpu_xml(0, (self.info.get("memory").get("current")) << 10, cpu_topo)