Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix related names of NetmapView #2683

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
_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()

Check warning on line 139 in python/nav/netmap/topology.py

View check run for this annotation

Codecov / codecov/patch

python/nav/netmap/topology.py#L139

Added line #L139 was not covered by tests
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 @@
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())

Check warning on line 194 in python/nav/netmap/topology.py

View check run for this annotation

Codecov / codecov/patch

python/nav/netmap/topology.py#L194

Added line #L194 was not covered by tests
_logger.debug("build_netmap_layer3_graph() view positions and graph done")
return graph

Expand Down
Loading