Comment 3 for bug 1008180

Revision history for this message
ExxonValdeez (exxonvaldeez) wrote :

I've written a rough outline of the code I'm going to add to the model_v2.py and db_base_plugin_v2.py. To handle 'dns_nameservers', I will use the IPAllocation model and add a relationship in the Subnet model. For 'reserved_ranges' and 'additional_host_routes' under the Subnet model and 'host_routes' under the Port model, I will create a new model that stores the 'start' and 'end' in fixed attributes or the 'destination' and 'next_hop', respectively.

The db_base_plugin_v2.py file will need to be updated to correctly create these objects and output them into the dictionaries that the '_make_x_dict' function create.

These modifications should be fairly straightforward and won't require anything unusual in terms of SQLAlchemy model creation.