Add method to support looking up subnet by id rather than network id

Close #738