Protocol/Pipe naming mostly

This commit is contained in:
graffen 2018-11-09 08:53:18 +00:00
parent 7f9ce9ce33
commit d536cb2f79
4 changed files with 23 additions and 9 deletions

View File

@ -19,8 +19,13 @@ template bgp ibgppeer {
path metric on; path metric on;
import keep filtered; import keep filtered;
import all; import all;
export all; export filter {
source address OWNIP_IBGP; if is_self_net() then {
reject;
}
accept;
};
source address OWNIP;
next hop self; next hop self;
} }
@ -30,9 +35,15 @@ template pipe iBGP_Pipe {
export all; export all;
} }
protocol pipe { template pipe dn42peer_pipe {
peer table master;
import all;
export all;
}
protocol pipe P_BGP_to_Master {
table master; table master;
peer table T_BGP; peer table T_BGP;
import all; import all;
export all; export all;
} }

View File

@ -33,7 +33,7 @@ template pipe iBGP_Pipe {
} }
protocol pipe { protocol pipe P_BGP_to_Master {
table master; table master;
peer table T_BGP; peer table T_BGP;
import all; import all;

View File

@ -1,4 +1,4 @@
protocol ospf { protocol ospf O_OSPF {
table T_OSPF; table T_OSPF;
import all; import all;
export all; export all;
@ -6,6 +6,9 @@ protocol ospf {
area 0 { area 0 {
interface "wg-ospf-*" { interface "wg-ospf-*" {
}; };
interface "wg-roam-*" {
};
interface "lo" { interface "lo" {
stub; stub;
@ -14,12 +17,12 @@ protocol ospf {
} }
filter filter_OSPF { filter filter_OSPF {
# ospf_metric1 = 1000; ospf_metric1 = 1000;
if is_self_net() then accept; if is_self_net() then accept;
else reject; else reject;
}; };
protocol pipe { protocol pipe P_OSPF_to_Master {
peer table T_OSPF; peer table T_OSPF;
table master; table master;
import filter filter_OSPF; import filter filter_OSPF;

View File

@ -19,7 +19,7 @@ filter filter_OSPF {
else reject; else reject;
}; };
protocol pipe { protocol pipe P_OSPF_to_Master {
peer table T_OSPF; peer table T_OSPF;
table master; table master;
import filter filter_OSPF; import filter filter_OSPF;