Skip to content

Commit

Permalink
Merge pull request #2683 from johannaengland/bugfix/netmap-related-names
Browse files Browse the repository at this point in the history
Fix related names of NetmapView
  • Loading branch information
johannaengland authored Sep 14, 2023
2 parents 25e4b32 + 6254fd0 commit 3ecbb92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/nav/netmap/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def build_netmap_layer2_graph(
_logger.debug("build_netmap_layer2_graph() vlan metadata for _nodes_ done")

if view:
saved_views = view.node_position_set.all()
saved_views = view.node_positions.all()
netmap_graph = _attach_node_positions(netmap_graph, saved_views)
_logger.debug("build_netmap_layer2_graph() view positions and graph done")

Expand Down Expand Up @@ -191,7 +191,7 @@ def build_netmap_layer3_graph(topology_without_metadata, load_traffic=False, vie
metadata[gwpp_u.prefix.vlan.id].append(additional_metadata)

if view:
graph = _attach_node_positions(graph, view.node_position_set.all())
graph = _attach_node_positions(graph, view.node_positions.all())
_logger.debug("build_netmap_layer3_graph() view positions and graph done")
return graph

Expand Down

0 comments on commit 3ecbb92

Please sign in to comment.