Discussion about ordering in configurations.
It concerns mainly subnets and client classes but most of this is generic, e.g. can be applied to shared networks:
-
memory representation must use a multi index container with a sequenced or random access index to implement the order, in particular we must to not add previous or next field to objects themselves.
-
database representation must use previous and next columns in rows to implement a double linked list. First and last rows have a reserved previous or next value (e.g. id 0 for subnets).
-
command hooks must add a before or after to insert command (vs always nsert at the end) and an easy way to get the order itself, e.g. the order list of entries used as index (subnet id, client class name, ...).
-
optionally (i.e. not in 1.5) we can add a relocate command.