Merge pull request #38 from Cerberus98/master

Fixes #36
Fixes #34

A previous patch updated segment_id to correctly be treated as a list,
but inadvertently filtered on tenant_id instead of segment_id in the
subnets table.