Prefer to go outside directly if possible
@@ -18,6 +18,7 @@ template bgp tpl_bgp {
template bgp ibgp from tpl_bgp {
direct;
gateway direct;
+ preference 50;
local as 20766;
next hop self;
import where bgp_import(20766,"core",0,100);
@@ -17,6 +17,7 @@ template bgp tpl_bgp {