#NEWLINE# def get_single_nic_with_vif_port_id( task ) : #NEWLINE# #INDENT# 'Returns the MAC address of a port which has a VIF port id.\n\n    :param task: a TaskManager instance containing the ports to act on.\n    :returns: MAC address of the port connected to deployment network.\n              None if it cannot find any port with vif id.\n    ' #NEWLINE# for port in task . ports : #NEWLINE# #INDENT# if port . extra . get ( 'vif_port_id' ) : #NEWLINE# #INDENT# return port . address