Skip to content

Commit

Permalink
support to configure host onearm mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Jun 12, 2024
1 parent fa6d21f commit a253f09
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 @@ -103,6 +103,8 @@ func ModeToNum(sel string) int {
ret = 3
case "fullproxy":
ret = 4
case "hostonearm":
ret = 5
default:
ret = 0
}
Expand All @@ -127,6 +129,7 @@ func NewCreateLoadBalancerCmd(restOptions *api.RESTOptions) *cobra.Command {
onearm - LB put LB-IP as srcIP
fullnat - LB put Service IP as scrIP
fullproxy - LB operating as a L7 proxy
hostonearm - LB operating in host one-arm
ex) loxicmd create lb 192.168.0.200 --tcp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
loxicmd create lb 192.168.0.200 --tcp=80:32015 --name="http-service" --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
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 @@ -95,6 +95,8 @@ func NumToMode(mode int) string {
ret = "dsr"
case 4:
ret = "fullproxy"
case 5:
ret = "hostonearm"
default:
ret = "default"
}
Expand Down

0 comments on commit a253f09

Please sign in to comment.