Skip to content

Commit

Permalink
changed hardcoded zone instance name to contant
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Jan 13, 2025
1 parent 54839a0 commit 8c042e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/loxinet/apiclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (na *NetAPIStruct) NetLbRuleAdd(lm *cmn.LbRuleMod) (int, error) {
for _, ip := range lm.SecIPs {
ips = append(ips, ip.SecIP)
}
mh.bgp.AddBGPRule("default", ips)
mh.bgp.AddBGPRule(cmn.CIDefault, ips)
} else {
tk.LogIt(tk.LogDebug, "loxilb BGP mode is disabled \n")
}
Expand All @@ -359,7 +359,7 @@ func (na *NetAPIStruct) NetLbRuleDel(lm *cmn.LbRuleMod) (int, error) {
if lm.Serv.Bgp {
if mh.bgp != nil {
ips = append(ips, lm.Serv.ServIP)
mh.bgp.DelBGPRule("default", ips)
mh.bgp.DelBGPRule(cmn.CIDefault, ips)
} else {
tk.LogIt(tk.LogDebug, "loxilb BGP mode is disabled \n")
}
Expand Down

0 comments on commit 8c042e3

Please sign in to comment.