dn42: clean up bgp filters
This commit is contained in:
parent
f0e9acc6ce
commit
446f93bf00
|
@ -173,26 +173,24 @@ in {
|
||||||
template bgp dnpeers {
|
template bgp dnpeers {
|
||||||
local as 64699;
|
local as 64699;
|
||||||
ipv4 {
|
ipv4 {
|
||||||
import all;
|
import filter {
|
||||||
|
if proto = "hq4" then reject;
|
||||||
|
accept;
|
||||||
|
};
|
||||||
export filter {
|
export filter {
|
||||||
if source = RTS_BGP then {
|
if source = RTS_BGP then accept;
|
||||||
accept;
|
if proto = "hq4" then accept;
|
||||||
}
|
|
||||||
if proto = "hq4" then {
|
|
||||||
accept;
|
|
||||||
}
|
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
ipv6 {
|
ipv6 {
|
||||||
import all;
|
import filter {
|
||||||
|
if proto = "hq6" then reject;
|
||||||
|
accept;
|
||||||
|
};
|
||||||
export filter {
|
export filter {
|
||||||
if source = RTS_BGP then {
|
if source = RTS_BGP then accept;
|
||||||
accept;
|
if proto = "hq6" then accept;
|
||||||
}
|
|
||||||
if proto = "hq6" then {
|
|
||||||
accept;
|
|
||||||
}
|
|
||||||
reject;
|
reject;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue