tempest/api/baremetal/base.py
def create_node(cls, chassis_id, cpu_arch='x86', cpu_num=8, storage=1024,
                    memory=4096, driver='fake'):
        """
        Wrapper utility for creating test baremetal nodes.

        :param cpu_arch: CPU architecture of the node. Default: x86.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :return: Created node.

        """
        resp, body = cls.client.create_node(chassis_id, cpu_arch=cpu_arch,
                                            cpu_num=cpu_num, storage=storage,
                                            memory=memory, driver=driver)

        return {'node': body, 'response': resp}

        Wrapper utility for creating test baremetal nodes.

        :param cpu_arch: CPU architecture of the node. Default: x86.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :return: Created node.

        
Wrapper utility for creating test baremetal nodes.
Wrapper utility for creating test baremetal nodes .
def create_node(cls, chassis_id, cpu_arch='x86', cpu_num=8, storage=1024,
                    memory=4096, driver='fake'):
        resp, body = cls.client.create_node(chassis_id, cpu_arch=cpu_arch,
                                            cpu_num=cpu_num, storage=storage,
                                            memory=memory, driver=driver)
        return {'node': body, 'response': resp}
def create_node ( cls , chassis_id , cpu_arch = 'x86' , cpu_num = 8 , storage = 1024 , memory = 4096 , driver = 'fake' ) : resp , body = cls . client . create_node ( chassis_id , cpu_arch = cpu_arch , cpu_num = cpu_num , storage = storage , memory = memory , driver = driver ) return { 'node' : body , 'response' : resp }
Wrapper utility for creating test baremetal nodes.
Wrapper utility for creating test baremetal nodes .
"""
        Wrapper utility for creating test baremetal nodes.

        :param cpu_arch: CPU architecture of the node. Default: x86.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :return: Created node.

        """
None
cls
chassis_id
cpu_arch
CPU architecture of the node. Default: x86.
CPU architecture of the node . Default : x86 .
cpu_num
Number of CPUs. Default: 8.
Number of CPUs . Default : 8 .
storage
None
memory
None
driver