<div dir="ltr">Hi,<div><br></div><div>I'm having some issues getting the sflow-detect-ixp-bgp-sessions to work. See output below:</div><div><br></div><div>
<p class=""><span class="">/usr/local/bin# control-sflow-detect-ixp-bgp-sessions start</span></p>
<p class=""><span class="">control-sflow-detect-ixp-bgp-sessions </span><span class="">[Started]</span></p>
<p class=""><span class="">/usr/local/bin# given is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 106.</span></p>
<p class=""><span class="">when is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 107.</span></p>
<p class=""><span class="">when is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 108.</span></p>
<p class=""><span class="">Can't call method "short" on an undefined value at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 206.</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">Line 206:</span></p><p class=""><span class="">
</span></p><p class=""><span class=""> $mapping->{6}->{NetAddr::IP->new($rec->{address})->short()} = $rec->{id};</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">When debugging a bit and changing the code on line 206 to the following:</span></p><p class=""><span class=""> my $foo = NetAddr::IP->new($rec->{address})->short();</span></p><p class=""><span class=""> print $foo</span></p><p class=""><span class="">
</span></p><p class=""><span class=""> $mapping->{6}->{$foo} == $rec->{id};</span></p><p class=""><span class="">The output is: </span></p><p class=""><span class=""># given is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 106.</span></p><p class=""><span class="">when is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 107.</span></p><p class=""><span class="">when is experimental at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 108.</span></p><p class=""><span class="">
</span></p><p class=""><span class="">Can't use string ("2001:7f8:3e:0:a500:3:3886:1") as a symbol ref while "strict refs" in use at /usr/local/bin/sflow-detect-ixp-bgp-sessions line 208.</span></p><p class=""><span class="">... where line 208 is "print $foo".</span></p><p class=""><span class=""><br></span></p><p class="">Running on Debian 8.3</p><p class="">Any ideas?<br></p><div><div class="gmail_signature"><div dir="ltr">
<p>
</p><p><br></p>
<p>//Rasmus</p><p></p></div></div></div>
</div></div>