'Are we forwarding yet?'

def connected(self):

    if self.stp:
        status = self.dpctl('show')
        return (('STP_FORWARD' in status) and (not ('STP_LEARN' in status)))
    else:
        return True
