<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Barry,</p>
<p>I tried to debug few days ago and found the solution. it was
because I disabled one of protocols for IPv6.</p>
<p>So the my router servers can't disable any protocol otherwise the
script will fail.</p>
<p><br>
</p>
<p>another solved issue I had, my router servers using vlan
interface. so the output of 'show route <protocol>' would be
<br>
203.159.70.0/24 via 203.159.68.3 on eth0.99 [pb_0065_as63528
2018-07-01] * (100) [AS63528i]<br>
</p>
<p>which standard preg_match in birdseye/app/Bird/Parser/Routes.php
does not match. I've modified a working one for me.<br>
</p>
<p>if( preg_match(
"/^([0-9a-f\.\:\/]+)\s+via\s+([0-9a-f\.\:]+)\s+on\s+<font
color="#ff0000">(\w+\.[0-9]+)</font>\s+\[(\w+)\s+([0-9\-\:]+(?:\s[0-9\-\:]+){0,1})(?:\s+from\s+([0-9a-f\.\:\/]+)){0,1}\]\s+(?:(\*)\s+){0,1}\((\d+)(?:\/\d+){0,1}\).*$/",
$line, $matches ) ) {<br>
</p>
Kind Regards,<br>
Kittinan<br>
<br>
<div class="moz-cite-prefix">On 7/3/18 03:00, Barry O'Donovan wrote:<br>
</div>
<blockquote type="cite"
cite="mid:66f4f44d-d996-50eb-9175-a3ae0eebec89@inex.ie">Kittinan,
<br>
<br>
it's not obvious to me how you've arrived at the below error. It's
complaining the the protocal state is not set ($p->state) but
there must be at least one protocol to execute that code.
<br>
<br>
A typical Bird BGP protocol status link looks like:
<br>
<br>
pb_0109_as42 BGP t_0109_as42 up 2016-09-30 Established
<br>
<br>
or
<br>
<br>
pb_0081_as30900 BGP t_0081_as30900 start 2015-11-27 Active
Socket: No route to host
<br>
<br>
<br>
Can you provide a: 'show protocols all' from your IPv6 route
server?
<br>
<br>
- Barry
<br>
<br>
<br>
<br>
<br>
Kittinan Sriprasert wrote on 29/06/2018 09:24:
<br>
<blockquote type="cite">Hi Barry and Nick,
<br>
<br>
I have some problems about birdeye looking glass in IXP-Manager.
<br>
<br>
Now I can get IXP-Manager talking with RS1 thru API on both IPv4
and IPv6.
<br>
I can get json result from both 'Pass thru' API Call
<a class="moz-txt-link-freetext" href="https://ixpmanager.bknix.co.th/api/v4/lg/rs1-ixp-ipv4/bgp-summary">https://ixpmanager.bknix.co.th/api/v4/lg/rs1-ixp-ipv4/bgp-summary</a>
and
<a class="moz-txt-link-freetext" href="https://ixpmanager.bknix.co.th/api/v4/lg/rs1-ixp-ipv6/bgp-summary">https://ixpmanager.bknix.co.th/api/v4/lg/rs1-ixp-ipv6/bgp-summary</a>.
Results are in attachment.
<br>
<br>
Live status also shows those v4 and v6.
<br>
<br>
v4 looking glass is working fine :
<a class="moz-txt-link-freetext" href="https://ixpmanager.bknix.co.th/lg/rs1-ixp-ipv4">https://ixpmanager.bknix.co.th/lg/rs1-ixp-ipv4</a>
<br>
<br>
but when I try to access
<a class="moz-txt-link-freetext" href="https://ixpmanager.bknix.co.th/lg/rs1-ixp-ipv6">https://ixpmanager.bknix.co.th/lg/rs1-ixp-ipv6</a>, the errors have
shown below
<br>
<br>
[2018-06-29 14:53:16] production.ERROR: Undefined property:
stdClass::$state {"exception":"[object] (ErrorException(code:
0): Undefined property: stdClass::$state at
/opt/ixpmanager/resources/views/services/lg/bgp-summary.foil.php:32)
<br>
[stacktrace]
<br>
#0
/opt/ixpmanager/resources/views/services/lg/bgp-summary.foil.php(32):
Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8,
'Undefined prope...', '/opt/ixpmanager...', 32, Array)
<br>
#1
/opt/ixpmanager/vendor/foil/foil/src/Template/Template.php(287):
require('/opt/ixpmanager...')
<br>
#2
/opt/ixpmanager/vendor/foil/foil/src/Template/Template.php(231):
Foil\\Template\\Template->collect('/opt/ixpmanager...')
<br>
#3 /opt/ixpmanager/vendor/foil/foil/src/Engine.php(307):
Foil\\Template\\Template->render(Array)
<br>
#4 /opt/ixpmanager/vendor/foil/foil/src/Engine.php(231):
Foil\\Engine->doRender('/opt/ixpmanager...', Array, NULL)
<br>
#5 /opt/ixpmanager/vendor/foil/foil/src/Engine.php(204):
Foil\\Engine->renderTemplate('/opt/ixpmanager...', Array)
<br>
#6 /opt/ixpmanager/app/Services/FoilEngine.php(30):
Foil\\Engine->render('/opt/ixpmanager...', Array)
<br>
#7
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/View/View.php(137):
IXP\\Services\\FoilEngine->get('/opt/ixpmanager...', Array)
<br>
#8
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/View/View.php(120):
Illuminate\\View\\View->getContents()
<br>
#9
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/View/View.php(85):
Illuminate\\View\\View->renderContents()
<br>
#10
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Http/Response.php(42):
Illuminate\\View\\View->render()
<br>
#11
/opt/ixpmanager/vendor/symfony/http-foundation/Response.php(200):
Illuminate\\Http\\Response->setContent(Object(Illuminate\\View\\View))
<br>
#12
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(724):
Symfony\\Component\\HttpFoundation\\Response->__construct(Object(Illuminate\\View\\View))
<br>
#13
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(698):
Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request),
Object(Illuminate\\View\\View))
<br>
#14
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658):
Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request),
Object(Illuminate\\View\\View))
<br>
#15
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30):
Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#16
/opt/ixpmanager/app/Http/Middleware/Services/LookingGlass.php(88):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#17
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
IXP\\Http\\Middleware\\Services\\LookingGlass->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#18
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#19
/opt/ixpmanager/app/Http/Middleware/ControllerEnabled.php(94):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))<br>
#20
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
IXP\\Http\\Middleware\\ControllerEnabled->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#21
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#22
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#23
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(660):
Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
<br>
#24
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635):
Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route),
Object(Illuminate\\Http\\Request))
<br>
#25
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(601):
Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request),
Object(Illuminate\\Routing\\Route))
<br>
#26
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Router.php(590):
Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
<br>
#27
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(176):
Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
<br>
#28
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30):
Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#29
/opt/ixpmanager/vendor/fideloper/proxy/src/TrustProxies.php(56):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#30
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#31
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#32
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#33
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#34
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#35
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#36
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#37
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#38
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#39
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#40
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#41
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#42
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(149):
Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request),
Object(Closure))
<br>
#43
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53):
Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#44
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102):
Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
<br>
#45
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(151):
Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
<br>
#46
/opt/ixpmanager/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116):
Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
<br>
#47 /opt/ixpmanager/public/index.php(85):
Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))<br>
#48 {main}
<br>
"}
<br>
<br>
-- <br>
Best Regards,
<br>
Kittinan Sriprasert (NAN)
<br>
*/BKNI/**/X/**/Co., Ltd./*
<br>
Tel: +662-107-1538, +6681-734-5500
<br>
/_<a class="moz-txt-link-freetext" href="https://www.bknix.co.th">https://www.bknix.co.th</a> _/
<br>
<br>
<br>
_______________________________________________
<br>
INEX IXP Manager mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:ixpmanager@inex.ie">ixpmanager@inex.ie</a>
<br>
Unsubscribe or change options here:
<a class="moz-txt-link-freetext" href="https://www.inex.ie/mailman/listinfo/ixpmanager">https://www.inex.ie/mailman/listinfo/ixpmanager</a>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
</body>
</html>