Closed vincentmli closed 3 months ago
I have existing lb as below:
[root@bpfire-3 ~]# loxicmd get lb -o wide | EXT IP | SEC IPS | PORT | PROTO | NAME | MARK | SEL | MODE | ENDPOINT | EPORT | WEIGHT | STATE | COUNTERS | |-------------|---------|------|-------|------|------|-----|---------|-------------|-------|--------|--------|----------| | 1.1.1.1 | | 80 | tcp | lb1 | 0 | rr | onearm | 2.2.2.2 | 9080 | 1 | active | 0:0 | | | | | | | | | | 3.3.3.3 | 9080 | 1 | active | 0:0 | | 10.99.99.99 | | 80 | tcp | | 0 | rr | default | 192.168.3.6 | 80 | 1 | - | 0:0 |
I want to change the lb1 mode from onearm to fullnat, so I run this
mode
onearm
fullnat
[root@bpfire-3 ~]# loxicmd create lb 1.1.1.1 --tcp=80:9080 --name=lb1 --mode=fullnat --endpoints=2.2.2.2:1,3.3.3.3:1 ProtoPortpair: map[tcp:[80:9080]] Debug: response.StatusCode: 200 lbrule-exists error
it complains lbrule-exists error, but if I add or remove one of the endpoints along with the mode fullnat change, it succeeded
lbrule-exists error
mode fullnat
[root@bpfire-3 ~]# loxicmd create lb 1.1.1.1 --tcp=80:9080 --name=lb1 --mode=fullnat --endpoints=2.2.2.2:1 ProtoPortpair: map[tcp:[80:9080]] Debug: response.StatusCode: 200 Success
so it appears I can't use loxicmd create lb to only change mode or select, is this bug?
select
Yes it was not supported before but has been added
I have existing lb as below:
I want to change the lb1
mode
fromonearm
tofullnat
, so I run thisit complains
lbrule-exists error
, but if I add or remove one of the endpoints along with themode fullnat
change, it succeededso it appears I can't use loxicmd create lb to only change
mode
orselect
, is this bug?