Skip to content

Commit

Permalink
Merge pull request #368 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR -  gobgp to run on custom ports
  • Loading branch information
UltraInstinct14 authored Jul 30, 2023
2 parents 17d368a + 950e319 commit 55ecacb
Show file tree
Hide file tree
Showing 55 changed files with 625 additions and 203 deletions.
3 changes: 3 additions & 0 deletions api/models/b_g_p_global_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/firewall_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions api/models/loadbalance_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/mirror_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/mirror_get_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/policy_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 0 additions & 25 deletions api/models/port_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/models/route_get_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/session_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/models/session_ul_cl_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions api/models/vlan_get_entry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions api/restapi/embedded_spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions api/restapi/handler/gobgp.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ func ConfigPostBGPGlobal(params operations.PostConfigBgpGlobalParams) middleware
// Export policy list
bgpG.SetNHSelf = params.Attr.SetNextHopSelf

// Listen Port
bgpG.ListenPort = uint16(params.Attr.ListenPort)
if bgpG.ListenPort == 0 {
bgpG.ListenPort = 179
}

tk.LogIt(tk.LogDebug, "[API] GoBGP GCAdd : %v\n", bgpG)
_, err := ApiHooks.NetGoBGPGCAdd(&bgpG)
if err != nil {
Expand Down
5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_cistate_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_conntrack_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_endpoint_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_fdb_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_firewall_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_ipv4address_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions api/restapi/operations/get_config_loadbalancer_all.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 55ecacb

Please sign in to comment.