diff --git a/ospf4.conf b/ospf4.conf index 4afc468..78c79d6 100644 --- a/ospf4.conf +++ b/ospf4.conf @@ -13,22 +13,15 @@ protocol ospf { }; } -protocol direct { - table T_OSPF4; - import where is_self_net(); - export none; - - interface "lo"; -} - filter filter_OSPF { ospf_metric1 = 1000; - if source = RTS_STATIC then accept; + if is_self_net() then accept; else reject; }; protocol pipe { - peer table T_OSPF4; - import filter filter_OSPF; - export none; + table T_OSPF4; + peer table master; + import none; + export filter filter_OSPF; } diff --git a/ospf6.conf b/ospf6.conf index 4777d74..731c215 100644 --- a/ospf6.conf +++ b/ospf6.conf @@ -13,22 +13,16 @@ protocol ospf { }; } -protocol direct { - table T_OSPF6; - import where is_self_net(); - export none; - - interface "lo"; -} filter filter_OSPF6 { ospf_metric1 = 1000; - if source = RTS_STATIC then accept; + if is_self_net() then accept; else reject; }; protocol pipe { - peer table T_OSPF6; - import all; + table T_OSPF6; + peer table master; + import none; export filter filter_OSPF6; }