Skip to content

Commit

Permalink
added support for LB select type for N2 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Jun 4, 2024
1 parent dca1f6f commit e43de39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/create/create_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ func SelectToNum(sel string) int {
ret = 3
case "lc":
ret = 4
case "n2":
ret = 5
default:
ret = 0
}
Expand Down Expand Up @@ -120,6 +122,7 @@ func NewCreateLoadBalancerCmd(restOptions *api.RESTOptions) *cobra.Command {
hash - select the lb end-points based on hashing
priority - select the lb based on weighted round-robin
persist - select the lb end-point based on sender
n2 - select the lb end-point base on N2 interface params (only available with fullproxy mode)
--mode value options
onearm - LB put LB-IP as srcIP
fullnat - LB put Service IP as scrIP
Expand Down
2 changes: 2 additions & 0 deletions cmd/get/get_loadbalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ func NumToSelect(sel int) string {
ret = "persist"
case 4:
ret = "lc"
case 5:
ret = "n2"
default:
ret = "rr"
}
Expand Down

0 comments on commit e43de39

Please sign in to comment.