sk2 / ank_legacy_v2

Legacy edition of autonetkit. Please see https://github.com/sk2/autonetkit for latest version
www.autonetkit.org
BSD 3-Clause "New" or "Revised" License
10 stars 4 forks source link

netkitcompiler.py bug #190

Closed coaj closed 12 years ago

coaj commented 12 years ago

$ autonetkit -f gr-eg.graphml --dynagen --ospf --bgp_policy gr-eg.main INFO Loading INFO Compiling INFO Applying BGP policy from gr-eg.main INFO Applying function gao_rexford({A}, A_customers, A_peers, A_upstream) INFO Applying function gao_rexford({B}, B_customers, B_peers, B_upstream) INFO Applying function gao_rexford({C}, C_customers, C_peers, C_upstream) INFO Applying function gao_rexford({U1}, U1_customers, U1_peers, {}) INFO Applying function gao_rexford({U2}, U2_customers, U2_peers, {}) INFO Applying function prefer_customer({C}, C_customers) INFO Active Netkit deployment target, automatically compiling INFO Configuring Netkit Traceback (most recent call last): File "/usr/local/bin/autonetkit", line 8, in load_entry_point('AutoNetkit==0.5.65dev-20120124', 'console_scripts', 'autonetkit')() File "/Library/Python/2.6/site-packages/AutoNetkit/console_script.py", line 78, in main inet.compile() File "/Library/Python/2.6/site-packages/AutoNetkit/internet.py", line 321, in compile nk_comp.configure() File "/Library/Python/2.6/site-packages/AutoNetkit/compiler/netkitcompiler.py", line 804, in configure self.configure_bgp() File "/Library/Python/2.6/site-packages/AutoNetkit/compiler/netkitcompiler.py", line 612, in configure_bgp interfaces = self.configure_interfaces(router) File "/Library/Python/2.6/site-packages/AutoNetkit/compiler/netkitcompiler.py", line 450, in configure_interfaces 'weight': data.get('weight', self.default_weight), AttributeError: NetkitCompiler instance has no attribute 'default_weight'

sk2 commented 12 years ago

should be fixed - I'm trying pre-emptive bug fixes :)