'Get the port\'s assigned ofport, retrying if not yet assigned.'

def get_port_ofport(self, port_name):

    ofport = INVALID_OFPORT
    try:
        ofport = self._get_port_val(port_name, 'ofport')
    except tenacity.RetryError:
        LOG.exception(_LE('Timed    out    retrieving    ofport    on    port    %s.'), port_name)
    return ofport
