From dbd7bb3420cac63415724d391ab7248b1992ab1f Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Thu, 9 Nov 2023 16:13:26 +0100 Subject: [PATCH] MT#58696 sync-db auto lb outbound sockets only sip_ext * only 'sip_ext' interfaces are included into the automatic lb outbound_socket selection as 'sip_int' does not provide with the external traffic. Change-Id: Id35fcfdb69ff9ffc2caefd2fb588d0bb4f61f31e --- helper/sync-db | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/sync-db b/helper/sync-db index e9afdf32..0dd2689d 100755 --- a/helper/sync-db +++ b/helper/sync-db @@ -11,7 +11,7 @@ use DBI; use Capture::Tiny qw(capture); use DateTime::TimeZone; use DateTime::TimeZone::Catalog; -use List::Util qw(any); +use List::Util qw(any none); sub sync_extra_sockets; sub db_connect; @@ -106,7 +106,7 @@ sub lb_and_extra_sockets_sync { foreach my $iface (@{$ifaces}) { my $iface_ref = $host_ref->{$iface}; - next unless any { $_ =~ /^sip_/ } @{$iface_ref->{type}}; + next if none { $_ eq 'sip_ext' } @{$iface_ref->{type}}; my $shared_ips = $iface_ref->{shared_ip} // next; my $shared_ips_cnt = scalar @{$shared_ips};