Skip to content

Commit b6052cf

Browse files
committed
Update gobgp.yang for AllowAsPathLoopLocal config option
Update gobgp.yang for AllowAsPathLoopLocal config option and generate bgp_configs.go. Seems that the commit 16ea4f9 ("Add neighbor config option to bypass as-path loop detection on local (static) routes") updates bgp_configs.go by hand. Signed-off-by: FUJITA Tomonori <[email protected]>
1 parent f9db9e1 commit b6052cf

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

pkg/config/oc/bgp_configs.go

+10-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/pyang_plugins/gobgp.yang

+22
Original file line numberDiff line numberDiff line change
@@ -1458,4 +1458,26 @@ module gobgp {
14581458
}
14591459
}
14601460
}
1461+
1462+
augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:as-path-options/bgp:config" {
1463+
leaf allow-as-path-loop-local {
1464+
type boolean;
1465+
description
1466+
"Bypasses as-path loop detection on locally sourced (static) routes
1467+
when exporting towards iBGP neighbors. This is needed in some environments
1468+
where gobgp is functioning as a route injector. Non-local routes
1469+
are still checked for as-path loops.";
1470+
}
1471+
}
1472+
1473+
augment "/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:as-path-options/bgp:state" {
1474+
leaf allow-as-path-loop-local {
1475+
type boolean;
1476+
description
1477+
"Bypasses as-path loop detection on locally sourced (static) routes
1478+
when exporting towards iBGP neighbors. This is needed in some environments
1479+
where gobgp is functioning as a route injector. Non-local routes
1480+
are still checked for as-path loops.";
1481+
}
1482+
}
14611483
}

0 commit comments

Comments
 (0)