update GoBGP to v3.26.0 #162

Open
wrgeorge1983 wants to merge 1 commits from wrgeorge1983/161_update_GoBGP into develop
wrgeorge1983 commented 2024-05-01 15:50:43 +08:00 (Migrated from github.com)

troubleshooting for #161 made it clear what's actually going on is just need to target the newer release.

With these changes I was able to get GoBGP working

looking at the original go.mod it was targeting v2.4.0 (circa 2019). v3.0.0 came out in 2022.

Since I don't have any detailed knowledge, I assumed "latest is best" and targeted 3.26.0 here, but imagine any other semi-recent releases would work as well.

Most of the changes come down to using "asn" in field names instead of "as" and "ASNumber".

also change to the enum AddPeerMode enum (line 90 pkg/sources/gobgp/apiutil/capability.go) of appears correct (IDE says so!), but I don't know enough Go to be certain.

Let me know if you want any more info or changes!

troubleshooting for #161 made it clear what's actually going on is just need to target the newer release. With these changes I was able to get GoBGP working looking at the original go.mod it was targeting v2.4.0 (circa 2019). v3.0.0 came out in 2022. Since I don't have any detailed knowledge, I assumed "latest is best" and targeted 3.26.0 here, but imagine any other semi-recent releases would work as well. Most of the changes come down to using "asn" in field names instead of "as" and "ASNumber". also change to the enum AddPeerMode enum (line 90 pkg/sources/gobgp/apiutil/capability.go) of appears correct (IDE says so!), but I don't know enough Go to be certain. Let me know if you want any more info or changes!
This pull request has changes conflicting with the target branch.
  • go.mod
  • go.sum

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin wrgeorge1983/161_update_GoBGP:wrgeorge1983/161_update_GoBGP
git checkout wrgeorge1983/161_update_GoBGP
Sign in to join this conversation.
No description provided.