Skip to content

Commit

Permalink
Merge pull request #461 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR : Fixes related to init sequencing
  • Loading branch information
TrekkieCoder authored Dec 11, 2023
2 parents e159af2 + 132cb08 commit aadb73d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions api/loxinlp/nlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1551,8 +1551,6 @@ func NlpInit(bgpPeerMode bool, blackList string) *NlH {
nNl.IMap = make(map[string]Intf)

checkInit := make(chan bool)
go NlpGet(checkInit)
done := <-checkInit

err := nlp.LinkSubscribe(nNl.FromLUCh, nNl.FromLUDone)
if err != nil {
Expand Down Expand Up @@ -1582,6 +1580,9 @@ func NlpInit(bgpPeerMode bool, blackList string) *NlH {
go NLWorker(nNl, bgpPeerMode)
tk.LogIt(tk.LogInfo, "[NLP] NLP Subscription done\n")

go NlpGet(checkInit)
done := <-checkInit

go LbSessionGet(done)

return nNl
Expand Down
4 changes: 3 additions & 1 deletion cicd/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ spawn_docker_host() {
$hexec $dname ifconfig lo up
$hexec $dname sysctl net.ipv6.conf.all.disable_ipv6=1 2>&1 >> /dev/null
#$hexec $dname sysctl net.ipv4.conf.all.arp_accept=1 2>&1 >> /dev/null
$hexec $dname sysctl net.ipv4.conf.eth0.arp_ignore=2 2>&1 >> /dev/null
if [ -f /proc/sys/net/ipv4/conf/eth0/arp_ignore ]; then
$hexec $dname sysctl net.ipv4.conf.eth0.arp_ignore=2 2>&1 >> /dev/null
fi
}

## Get loxilb peer docker IP
Expand Down

0 comments on commit aadb73d

Please sign in to comment.