Feb. 15th, 2016

victor_sudakov: (Default)
Сабж делается так

protocol static pool1 {
        route x.x.x.x/24 unreachable ;
}
protocol ospf MyOSPF {
        export filter {
                ospf_metric1 = 200;
                if proto = "pool1" then accept; else reject;
        };
...
}


Вообще семантика import и export в BIRD неинтуитивная. Export пишется в секции протокола, но означает экспорт маршрутов из routing table в данный протокол. IMHO интуитивно было бы наоборот.

import all | none | filter name | filter { filter commands } | where filter expression

Specify a filter to be used for filtering routes coming from the protocol to the routing table. all is shorthand for where true and none is shorthand for where false. Default: all.

export filter

This is similar to the import keyword, except that it works in the direction from the routing table to the protocol. Default: none.

Profile

victor_sudakov: (Default)
Виктор Судаков

November 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 7th, 2025 12:18 am
Powered by Dreamwidth Studios