Comment 1 for bug 1550644

Revision history for this message
Blake Rouse (blake-rouse) wrote :

There is no issue with doing this now. The issue comes about when we allow a user to modify interfaces. The goal of parsing /etc/network/interfaces is to allow a user to be able to modify an interface and /etc/network/interfaces be updated. What you are suggesting would place the interface into the database but in the future we would have no way to edit those interfaces. We need to not only think about what we have now, but also how it will work in the future when that feature is added on.

What might be a good idea is to add "editable" field to the Interface model. Interfaces that do not appear in "/etc/network/interfaces" should have "editable" set to False and interfaces in /etc/network/interfaces would be set to True. This would allow us to add the editable later. I think that might be a good idea.