Encapsulated upstreadm keepalive in conditional