(self, state)
Translate/validate Host state
Translate/validate Host state
Translate / validate Host state
def _trans_host_state(self, state):
        """ Translate/validate Host state """
        if state == 0:
            return "ok"
        elif state == 1:
            return "down"
        else:
            return "unreachable"
def _trans_host_state ( self , state ) : if state == 0 : return "ok" elif state == 1 : return "down" else : return "unreachable"