This covers adding the database tables, model types, and queries for basic CRUD on external subnets. Most of this is pretty mechanical, with the exception of the code for slicing out valid-sized subnets to attach from a subnet pool member.
See RFD 599 (internal document).