Currently when you lookup interfaces by device, you have to do another lookup to translate Interface.device_id to Device.hostname. This sucks.
We should add Device.hostname as a locally-cached field on Interface objects, so that this can be available for utility without always having to do an extra lookup for each Device just to get the hostname.
Currently when you lookup interfaces by device, you have to do another lookup to translate
Interface.device_id
toDevice.hostname
. This sucks.We should add
Device.hostname
as a locally-cached field on Interface objects, so that this can be available for utility without always having to do an extra lookup for each Device just to get the hostname.