Hello Ryu devs,

I'm connecting a Ryu bgp speaker to a remote Quagga service and I'm able to
share prefixes with it.

When I execute the *get_rib() *method, I get the prefixes that I get from
it and the prefixes that I send to it:

[{u'paths':
[{u'origin': u'i', u'localpref': u'', u'nexthop': u'192.168.2.92',
u'metric': 0, *u'aspath':   [1000]*, u'prefix': u'10.100.0.0/24', u'bpr':
u'Only Path', u'best': True}], u'prefix':     u'10.100.0.0/24'}, {u'paths':
[{u'origin': u'i', u'localpref': u'', u'nexthop': u'192.168.2.92',
u'metric': 0, *u'aspath': [1000]*, u'prefix': u'10.101.0.0/24', u'bpr':
u'Only Path', u'best': True}], u'prefix': u'10.101.0.0/24'}, {u'paths':
[{u'origin': u'i', u'localpref': u'', u'nexthop': u'10.0.2.2', u'metric':
u'', *u'aspath': []*, u'prefix': u'172.24.4.0/24', u'bpr': u'Only Path',
u'best': True}], u'prefix': u'172.24.4.0/24'}]

I'm interested in filter only the learned ones. I noticed that the ones I
want has the 'aspath' attribute informed, whereas the ones I have send are
empty.

Is this attribute a reasonable filter? If not, how could I filter this list?

Regards and thanks

-- 
Jaume Devesa
Software Engineer at Midokura
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to