tempest/services/baremetal/v1/base_v1.py
def create_node(self, chassis_id, **kwargs):
        """
        Create a baremetal node with the specified parameters.

        :param cpu_arch: CPU architecture of the node. Default: x86_64.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :param driver: Driver name. Default: "fake"
        :return: A tuple with the server response and the created node.

        """
        node = {'chassis_uuid': chassis_id,
                'properties': {'cpu_arch': kwargs.get('cpu_arch', 'x86_64'),
                               'cpu_num': kwargs.get('cpu_num', 8),
                               'storage': kwargs.get('storage', 1024),
                               'memory': kwargs.get('memory', 4096)},
                'driver': kwargs.get('driver', 'fake')}

        return self._create_request('nodes', 'node', node)

        Create a baremetal node with the specified parameters.

        :param cpu_arch: CPU architecture of the node. Default: x86_64.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :param driver: Driver name. Default: "fake"
        :return: A tuple with the server response and the created node.

        
Create a baremetal node with the specified parameters.
Create a baremetal node with the specified parameters .
def create_node(self, chassis_id, **kwargs):
        node = {'chassis_uuid': chassis_id,
                'properties': {'cpu_arch': kwargs.get('cpu_arch', 'x86_64'),
                               'cpu_num': kwargs.get('cpu_num', 8),
                               'storage': kwargs.get('storage', 1024),
                               'memory': kwargs.get('memory', 4096)},
                'driver': kwargs.get('driver', 'fake')}
        return self._create_request('nodes', 'node', node)
def create_node ( self , chassis_id , ** kwargs ) : node = { 'chassis_uuid' : chassis_id , 'properties' : { 'cpu_arch' : kwargs . get ( 'cpu_arch' , 'x86_64' ) , 'cpu_num' : kwargs . get ( 'cpu_num' , 8 ) , 'storage' : kwargs . get ( 'storage' , 1024 ) , 'memory' : kwargs . get ( 'memory' , 4096 ) } , 'driver' : kwargs . get ( 'driver' , 'fake' ) } return self . _create_request ( 'nodes' , 'node' , node )
Create a baremetal node with the specified parameters.
Create a baremetal node with the specified parameters .
"""
        Create a baremetal node with the specified parameters.

        :param cpu_arch: CPU architecture of the node. Default: x86_64.
        :param cpu_num: Number of CPUs. Default: 8.
        :param storage: Disk size. Default: 1024.
        :param memory: Available RAM. Default: 4096.
        :param driver: Driver name. Default: "fake"
        :return: A tuple with the server response and the created node.

        """
A tuple with the server response and the created node.
A tuple with the server response and the created node .
self
chassis_id
cpu_arch
CPU architecture of the node.
CPU architecture of the node .
cpu_num
Number of CPUs. Default: 8.
Number of CPUs . Default : 8 .
storage
None
memory
None
driver
Driver name. Default: "fake"
Driver name . Default : " fake "