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

autonetkit 0.9.0 unable to build any topology #239

Closed
anubisg1 opened this issue May 6, 2014 · 5 comments
Closed

autonetkit 0.9.0 unable to build any topology #239

anubisg1 opened this issue May 6, 2014 · 5 comments

Comments

@anubisg1
Copy link

anubisg1 commented May 6, 2014

anubisg1@linux-uau6:~/netkit/autonetkit-0.9.0/example> autonetkit --debug -f small_internet.graphml
INFO AutoNetkit 0.9.0
INFO Converting graph input to undirected
DEBUG [Node: as20r2]: No interfaces initialised for
INFO Automatically assigning input interfaces
DEBUG [Overlay: input]: Initialised interfaces for as100r1, as100r2, as100r3, as1r1, as200r1, as20r1, as20r2, as20r3, as300r1, as300r2, as300r3, as300r4, as30r1, as40r1
INFO Unable to connect to visualisation server http://127.0.0.1:8000/publish
ERROR Error generating network configurations: 'NoneType' object does not support item assignment. More information may be available in the debug log.
DEBUG Error generating network configurations
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 226, in main
build_options=build_options, grid=options.grid)
File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 50, in manage_network
anm = build_network.build(graph)
File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator
return fn(_args, *_kwargs)
File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 256, in build
anm = initialise(input_graph)
File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator
return fn(_args, *_kwargs)
File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 84, in initialise
g_in = anm.add_overlay("input", graph=input_graph)
File "/usr/lib/python2.7/site-packages/autonetkit/anm/network_model.py", line 172, in add_overlay
overlay.allocate_interfaces()
File "/usr/lib/python2.7/site-packages/autonetkit/anm/graph.py", line 242, in allocate_interfaces
edge.raw_interfaces[src.id] = src_int_id
TypeError: 'NoneType' object does not support item assignment
Unable to build configurations.

@anubisg1
Copy link
Author

anubisg1 commented May 7, 2014

if i build on top of the json example showed in the readme it still fails:

anubisg1@linux-uau6:~/netkit> autonetkit --debug -f home.json
INFO AutoNetkit 0.9.0
DEBUG Unable to load autonetkit_cisco No module named autonetkit_cisco
INFO Unable to connect to visualisation server http://127.0.0.1:8000/publish
ERROR Error generating network configurations: 'NoneType' object has no attribute 'is_multigraph'. More information may be available in the debug log.
DEBUG Error generating network configurations
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 226, in main
build_options=build_options, grid=options.grid)
File "/usr/lib/python2.7/site-packages/autonetkit/console_script.py", line 50, in manage_network
anm = build_network.build(graph)
File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator
return fn(_args, *_kwargs)
File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 256, in build
anm = initialise(input_graph)
File "/usr/lib/python2.7/site-packages/autonetkit/ank_utils.py", line 11, in decorator
return fn(_args, *_kwargs)
File "/usr/lib/python2.7/site-packages/autonetkit/build_network.py", line 79, in initialise
all_multigraph = input_graph.is_multigraph()
AttributeError: 'NoneType' object has no attribute 'is_multigraph'
Unable to build configurations.

@sk2
Copy link
Owner

sk2 commented May 7, 2014

Hi, is this the github version of ANK? if so, do you know which branch? There's a lot of code in flux for 0.9 at the moment - many core modules are being tidied up and extended.

@anubisg1
Copy link
Author

anubisg1 commented May 7, 2014

hello,

i downloaded the "release" tarball. It's marked as 0.9.0 from here:
https://github.com/sk2/autonetkit/releases

and this is the commit referred to:

d22ceb0

@anubisg1
Copy link
Author

anubisg1 commented May 7, 2014

it seems anyway, that running the latest git code does not have this problem :) i'm going to close this.

@anubisg1 anubisg1 closed this as completed May 7, 2014
@sk2
Copy link
Owner

sk2 commented May 7, 2014

It's possible pulling the latest tagged version. I haven't tagged many since it's in such alpha state.

So it's quite possible the latest would be fine.

  • Simon

Sent from a mobile device.

On 7 May 2014, at 6:55 pm, anubisg1 notifications@github.com wrote:

Closed #239.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants