Adding discover function for all LDP resources