From 51b63984db1836a8c1ead69d09b990d51a77d58e Mon Sep 17 00:00:00 2001 From: Ezri Zhu Date: Sat, 5 Oct 2024 04:52:21 -0400 Subject: [PATCH] set bgp comm to add 2000 --- bgp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgp.go b/bgp.go index 5280326..270ee5f 100644 --- a/bgp.go +++ b/bgp.go @@ -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},