MT#56490 Reload lct gw table also on LB

This commit forces the reload of the lcr gw table not only for proxy
but also for lb. This is necessary to get lcr counters data structure
updated every time we have an add or del through web interface of the
list of gateways.

Change-Id: Ic25bdf916346965962c19164cffc4c48bf2aef7d
mr11.3
Alessio Garzi 3 years ago committed by Guillem Jover
parent ea51ea0587
commit e1c66a1365

@ -7,13 +7,16 @@ use warnings;
sub _sip_lcr_reload { sub _sip_lcr_reload {
my(%params) = @_; my(%params) = @_;
my($c) = @params{qw/c/}; my($c) = @params{qw/c/};
NGCP::Panel::Utils::XMLDispatcher::dispatch($c, "proxy-ng", 1, 1, <<EOF );
foreach my $kam (qw(proxy-ng loadbalancer)) {
NGCP::Panel::Utils::XMLDispatcher::dispatch($c, $kam, 1, 1, <<EOF );
<?xml version="1.0" ?> <?xml version="1.0" ?>
<methodCall> <methodCall>
<methodName>lcr.reload</methodName> <methodName>lcr.reload</methodName>
<params/> <params/>
</methodCall> </methodCall>
EOF EOF
}
return 1; return 1;
} }

Loading…
Cancel
Save