tempest/api/baremetal/base.py
def create_port(cls, node_id, address=None):
        """
        Wrapper utility for creating test ports.

        :param address: MAC address of the port. If not supplied, a random
            value will be generated.
        :return: Created port.

        """
        address = address or data_utils.rand_mac_address()
        resp, body = cls.client.create_port(address=address, node_id=node_id)

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

        Wrapper utility for creating test ports.

        :param address: MAC address of the port. If not supplied, a random
            value will be generated.
        :return: Created port.

        
Wrapper utility for creating test ports.
Wrapper utility for creating test ports .
def create_port(cls, node_id, address=None):
        address = address or data_utils.rand_mac_address()
        resp, body = cls.client.create_port(address=address, node_id=node_id)
        return {'port': body, 'response': resp}
def create_port ( cls , node_id , address = None ) : address = address or data_utils . rand_mac_address ( ) resp , body = cls . client . create_port ( address = address , node_id = node_id ) return { 'port' : body , 'response' : resp }
Wrapper utility for creating test ports.
Wrapper utility for creating test ports .
"""
        Wrapper utility for creating test ports.

        :param address: MAC address of the port. If not supplied, a random
            value will be generated.
        :return: Created port.

        """
None
cls
node_id
address
MAC address of the port. If not supplied, a random
value will be generated.
MAC address of the port . If not supplied a random value will be generated .