Fix OSPF config

This commit is contained in:
graffen 2018-09-17 18:02:46 +00:00
parent b90636898e
commit bb9e070b7c
2 changed files with 9 additions and 22 deletions

View File

@ -13,22 +13,15 @@ protocol ospf {
}; };
} }
protocol direct {
table T_OSPF4;
import where is_self_net();
export none;
interface "lo";
}
filter filter_OSPF { filter filter_OSPF {
ospf_metric1 = 1000; ospf_metric1 = 1000;
if source = RTS_STATIC then accept; if is_self_net() then accept;
else reject; else reject;
}; };
protocol pipe { protocol pipe {
peer table T_OSPF4; table T_OSPF4;
import filter filter_OSPF; peer table master;
export none; import none;
export filter filter_OSPF;
} }

View File

@ -13,22 +13,16 @@ protocol ospf {
}; };
} }
protocol direct {
table T_OSPF6;
import where is_self_net();
export none;
interface "lo";
}
filter filter_OSPF6 { filter filter_OSPF6 {
ospf_metric1 = 1000; ospf_metric1 = 1000;
if source = RTS_STATIC then accept; if is_self_net() then accept;
else reject; else reject;
}; };
protocol pipe { protocol pipe {
peer table T_OSPF6; table T_OSPF6;
import all; peer table master;
import none;
export filter filter_OSPF6; export filter filter_OSPF6;
} }