'Tests whether this flow entry is expired due to its idle or hard timeout'

def is_expired(self, now=None):

    if (now is None):
        now = time.time()
    return (self.is_idle_timed_out(now) or self.is_hard_timed_out(now))
