Skip to content

Commit

Permalink
added group options to api (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
dreng authored Mar 8, 2024
1 parent b92b012 commit f463804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netbox_topology_views/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def list(self, request):

if request.GET:

save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, show_neighbors = get_query_settings(request)
save_coords, show_unconnected, show_power, show_circuit, show_logical_connections, show_single_cable_logical_conns, show_cables, show_wireless, group_sites, group_locations, group_racks,show_neighbors = get_query_settings(request)
if 'group' not in request.query_params:
group_id = "default"
else:
Expand All @@ -125,6 +125,9 @@ def list(self, request):
show_circuit=show_circuit,
show_power=show_power,
show_wireless=show_wireless,
group_sites=group_sites,
group_locations=group_locations,
group_racks=group_racks,
group_id=group_id,
)
xml_data = export_data_to_xml(topo_data).decode('utf-8')
Expand Down

0 comments on commit f463804

Please sign in to comment.