[Xorp-users] Problem adding routes to custom devices

Ben Greear greearb at candelatech.com
Thu May 20 11:20:23 PDT 2010


On 05/20/2010 11:16 AM, Jeff Mitchell wrote:
> On 05/20/2010 12:54 PM, Ben Greear wrote:
>>> I actually compared logs from running with a normal interface vs. our
>>> custom interface and they were basically identical.
>>>
>>> I did see this:
>>>
>>> [ 2010/05/19 17:19:21.86898 INFO xorp:3702 RTRMGR
>>> rtrmgr/module_manager.cc:94 execute ] Executing module: static_routes
>>> (xorp_static_routes)
>>>
>>> [ 2010/05/19 17:19:21.98138 WARNING xorp:3702 XrlFinderTarget
>>> obj/x86_64-unknown-linux-gnu/xrl/targets/finder_base.cc:482
>>> handle_finder_0_2_resolve_xrl ] Handling method for
>>> finder/0.2/resolve_xrl failed: XrlCmdError 102 Command failed Target
>>> "static_routes" does not exist or is not enabled.
>>
>> I don't know exactly why these log messages appear, but they have always
>> been there as far as I know, and doesn't seem to cause any harm.
>
> The plot thickens a little bit...
>
> If I look at the interface with "ip link" (or ifconfig) it shows the
> interface to be up. And, indeed, I can pass traffic over it.
>
> However, if I do a "show interfaces" in XORP, it shows NO-CARRIER for
> those interfaces.
>
> I did a quick grep for it and found that it's dependent upon a
> no_carrier boolean function...so next I guess I need to find out where
> that's being set to true, and why. I'll grep through, but if anyone can
> point me quickly to the right spot, bonus.

fea/data_plane/ifconfig/ifconfig_media.cc

There are some hacks in the code that calls this to fake
carrier up in some cases, but best would probably be to get your
driver to implement the minimal ethtool ioctls to report
the carrier status.

Thanks,
Ben

>
> Thanks,
> Jeff


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-users mailing list