mirror of
https://github.com/osrg/gobgp.git
synced 2024-05-11 05:55:10 +00:00
rpki: validate only when RPKI is enabled
Signed-off-by: FUJITA Tomonori <[email protected]>
This commit is contained in:
@@ -571,6 +571,11 @@ func validatePath(ownAs uint32, tree *radix.Tree, cidr string, asPath *bgp.PathA
|
||||
}
|
||||
|
||||
func (c *roaManager) validate(pathList []*table.Path) {
|
||||
if len(c.clientMap) == 0 {
|
||||
// RPKI isn't enabled
|
||||
return
|
||||
}
|
||||
|
||||
for _, path := range pathList {
|
||||
if path.IsWithdraw || path.IsEOR() {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user