~allenap/maas/do-not-import-reactor-from-crochet

« back to all changes in this revision

Viewing changes to src/maasserver/api/networks.py

[r=blake-rouse][bug=1536754][author=mpontillo] List all MACs in legacy 'network list-connected-macs' API compatibility layer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
            request.user, NODE_PERMISSION.VIEW,
137
137
            from_nodes=Node.objects.all())
138
138
        interfaces = Interface.objects.filter(
139
 
            node__in=visible_nodes, ip_addresses__subnet=subnet)
 
139
            node__in=visible_nodes, vlan__subnet=subnet)
140
140
        existing_macs = set()
141
141
        unique_interfaces_by_mac = [
142
142
            interface