Skip to content

Commit

Permalink
set bgp comm to add 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Oct 5, 2024
1 parent b90ba94 commit 51b6398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (p *Prefix) bgpAnnounce(site *ConfigSite) {
NextHop: "0.0.0.0",
})

comm := (adminSet << uint32(16)) | uint32(site.Id)
comm := (adminSet << uint32(16)) | uint32(2000+site.Id)

c, _ := apb.New(&api.CommunitiesAttribute{
Communities: []uint32{comm},
Expand Down

0 comments on commit 51b6398

Please sign in to comment.