Skip to content

Commit f3d41c6

Browse files
sipwisermarcocapetta
authored andcommitted
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 (cherry picked from commit dbd7bb3)
1 parent 9bf9681 commit f3d41c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/sync-db

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use DBI;
1111
use Capture::Tiny qw(capture);
1212
use DateTime::TimeZone;
1313
use DateTime::TimeZone::Catalog;
14-
use List::Util qw(any);
14+
use List::Util qw(any none);
1515

1616
sub sync_extra_sockets;
1717
sub db_connect;
@@ -106,7 +106,7 @@ sub lb_and_extra_sockets_sync {
106106

107107
foreach my $iface (@{$ifaces}) {
108108
my $iface_ref = $host_ref->{$iface};
109-
next unless any { $_ =~ /^sip_/ } @{$iface_ref->{type}};
109+
next if none { $_ eq 'sip_ext' } @{$iface_ref->{type}};
110110

111111
my $shared_ips = $iface_ref->{shared_ip} // next;
112112
my $shared_ips_cnt = scalar @{$shared_ips};

0 commit comments

Comments
 (0)