mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
LoxiLB: delete lb by name
since loxilb is upgraded to 0.9.4 which allows loxicmd delete lb by name. fix: https://github.com/vincentmli/BPFire/issues/26 Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -642,13 +642,11 @@ sub CreateLB {
|
||||
}
|
||||
|
||||
sub DeleteLB {
|
||||
|
||||
my (%settings) = @_;
|
||||
my @loxicmd_options;
|
||||
my $command = 'loxicmd';
|
||||
my $proto = "--" . "$settings{'PROTO'}" . "=" . "$settings{'PORT'}";
|
||||
my $name = "--name=" . "$settings{'NAME'}";
|
||||
push(@loxicmd_options, "delete", "lb");
|
||||
push(@loxicmd_options, "$settings{'EXTIP'}");
|
||||
push(@loxicmd_options, "$proto");
|
||||
push(@loxicmd_options, "$name");
|
||||
&General::system($command, @loxicmd_options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user