mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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 {
|
sub DeleteLB {
|
||||||
|
|
||||||
my (%settings) = @_;
|
my (%settings) = @_;
|
||||||
my @loxicmd_options;
|
my @loxicmd_options;
|
||||||
my $command = 'loxicmd';
|
my $command = 'loxicmd';
|
||||||
my $proto = "--" . "$settings{'PROTO'}" . "=" . "$settings{'PORT'}";
|
my $name = "--name=" . "$settings{'NAME'}";
|
||||||
push(@loxicmd_options, "delete", "lb");
|
push(@loxicmd_options, "delete", "lb");
|
||||||
push(@loxicmd_options, "$settings{'EXTIP'}");
|
push(@loxicmd_options, "$name");
|
||||||
push(@loxicmd_options, "$proto");
|
|
||||||
&General::system($command, @loxicmd_options);
|
&General::system($command, @loxicmd_options);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user