Skip to content

Commit

Permalink
policy to reject all routes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Sep 25, 2024
1 parent 235016f commit 36e88d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,14 @@ func (p *Prefix) bgpAnnounce(site *ConfigSite) {

// make bgp policy to reject all routes
policy := &api.ApplyPolicy{
InPolicy: &api.PolicyAssignment{
Name: "reject",
Direction: api.PolicyDirection_IMPORT,
DefaultAction: api.RouteAction_REJECT,
},
ImportPolicy: &api.PolicyAssignment{
Name: "reject",
Direction: api.PolicyDirection_IMPORT,
DefaultAction: api.RouteAction_REJECT,
},
}
Expand Down

0 comments on commit 36e88d3

Please sign in to comment.