Skip to content

Commit

Permalink
MT#58696 sync-db auto lb outbound sockets only sip_ext
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
sipwiser authored and marcocapetta committed Nov 10, 2023
1 parent 5cd220f commit 39c18d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper/sync-db
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit 39c18d5

Please sign in to comment.