Skip to content

Commit

Permalink
Merge pull request loxilb-io#540 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
gobgp: continue global config if already running
  • Loading branch information
UltraInstinct14 authored Feb 21, 2024
2 parents 0b897ad + 017f8d1 commit 26a5e7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loxinet/gobgpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"net"
"os"
"os/exec"
"strings"
"sync"
"time"

Expand Down Expand Up @@ -1158,7 +1159,8 @@ func (gbh *GoBgpH) BGPGlobalConfigAdd(config cmn.GoBGPGlobalConfig) (int, error)
},
})

if err != nil {
if err != nil && !strings.Contains(err.Error(), "address already in use") {
tk.LogIt(tk.LogError, "[GoBGP] Error to start BGP %s \n", err.Error())
return -1, err
}

Expand Down

0 comments on commit 26a5e7b

Please sign in to comment.