mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 00:13:45 +00:00
Prefetch des interfaces.
This commit is contained in:
parent
8f04749320
commit
e7aa29aa72
1 changed files with 1 additions and 1 deletions
|
@ -1205,7 +1205,7 @@ def service_servers(request):
|
||||||
@permission_required('serveur')
|
@permission_required('serveur')
|
||||||
def ouverture_ports(request):
|
def ouverture_ports(request):
|
||||||
r = {'ipv4':{}, 'ipv6':{}}
|
r = {'ipv4':{}, 'ipv6':{}}
|
||||||
for o in OuverturePortList.objects.all().prefetch_related('ouvertureport_set'):
|
for o in OuverturePortList.objects.all().prefetch_related('ouvertureport_set').prefetch_related('interface_set'):
|
||||||
pl = {
|
pl = {
|
||||||
"tcp_in":set(map(str,o.tcp_ports_in())),
|
"tcp_in":set(map(str,o.tcp_ports_in())),
|
||||||
"tcp_out":set(map(str,o.tcp_ports_out())),
|
"tcp_out":set(map(str,o.tcp_ports_out())),
|
||||||
|
|
Loading…
Reference in a new issue