get_all_flavors uses id as key to be unique

Change I1b0c93b3e12714a5c0798aa87c9e3fe9bc14519a fixed returning
deleted flavors by changing the get_all_flavors dictionary key
away from 'name' to 'flavorid'. However flavorid is also not unique.

This patch fixes get_all_flavors to work properly using the 'id' as
the dictionary key. This allows flavors to be created with flavorid's
that were previously deleted and then have them all returned when
get_all_flavor(inactive=True) is used.

Fixes bug 1215295 properly

Change-Id: I357a804fe9f012143c996d66b9719c4f46f60e86
Update attach interface api to use new network model

Remove legacy network, mapping network info usage, use new
network model, update related unit tests for this change.

Closes-Bug: 1229517

Change-Id: Ibe4cbd025700aa0d73a6d4d19fbf8f0005509428
Merge "Update attach interface api to use new network model"
Merge "get_all_flavors uses id as key to be unique"