feature request: extend clist operations with pair sets
Henrique de Moraes Holschuh
hmh at hmh.eng.br
Thu Apr 19 00:35:53 CEST 2012
On Tue, 17 Apr 2012, Ondrej Zajicek wrote:
> On Fri, Apr 13, 2012 at 05:00:40PM -0300, Henrique de Moraes Holschuh wrote:
> > Well, we cannot have clist literals, only pair set literals. That makes
> > this limitation of clist operations rather unfortunate.
> >
> > Can BIRD be extended to allow operating on clists using pair sets?
> >
> > I.e. clist.add(pair set), clist.delete(pair set)...
>
> You could use clist.delete(pair set) or clist.filter(pair set).
> Only nonimplemented think is clist.add(pair set), which is
> operation that would expand compact representation of pair sets
> to explicit representation of clist, which is generally expensive
> and that may not be obvious to some users. For example,
> even restricted user from bird client could exhaust all memory by
> using show route command with some filter containing clist.add([(*,*)]).
>
> If we explicitly limit number of communities in clist, it could be done,
> but it is probably better idea to implement clist literals, which may
> be also useful for explicitly setting bgp_community with initial clist.
Well, clist literals would solve my use case, and also the use case
presented in this thread. So that might indeed be a better option.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
More information about the Bird-users
mailing list