def get_single_nic_with_vif_port_id(task):
    for port in task.ports:
        if port.extra.get('vif_port_id'):
            return port.address
Returns the MAC address of a port which has a VIF port id.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/deploy_utils.py/get_single_nic_with_vif_port_id