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

Topology map generation breaks on circuits with no Z termination interface set #1274

Closed
miek opened this issue Jun 15, 2017 · 0 comments
Closed
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@miek
Copy link

miek commented Jun 15, 2017

Issue type: Bug report

Python version: 2.7.13
NetBox version: 2.0.6

I had a circuit with A and Z terminations defined, but no termination device/interface set on the Z side. There is a topology map defined with the device pattern .* to add everything for testing.

When trying to render the graph I get the following error:

There was an error generating the requested graph. Ensure that the GraphViz executables have been installed correctly.

I believe this is caused by https://github.com/digitalocean/netbox/blob/293dbd8a8b2c291d1ae9efc7b2f2137fc896833b/netbox/extras/models.py#L374 where peer_termination is checked, but peer_termination.interface is not. The following exception is then raised (triggering the error above):

<type 'exceptions.AttributeError'>
'NoneType' object has no attribute 'device'
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Jun 15, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants