-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MT#58352 helper/sync-db add lb nodes outbound_socket support
* sync_extra_sockets() renamed into sync_lb_and_extra_sockets() * extra_sockets_sync() renamed into lb_and_extra_sockets_sync() * $config now also contains merged $NETWORK_CONFIG (network.yml) * lb_and_extra_sockets_sync does the following and then calls generic_enum_sync() to provide with the gathered data: * all shared ips from interfaces that - host have 'lb' role - host status 'online' - interface has type '^sip_' are added into the outbound sockets list of protos (udp, tcp, tls) as: 'host:interface:proto' = 'proto:shared_ip:port' (port is taken from config.kamailio.lb.port in case of ('udp', 'tcp') and config.kamailio.tls.port in case of 'tls' ) - if an interface has multiple shared IPs, the key becomes 'host:interface:shared_ip:proto' - $config->{kamailio}{lb}{extra_sockets} keys are merged with the gathered config * generic_enum_sync() - processes hash keys are now sorted to have consistent output/processing Change-Id: I218f1ae584e2dc9dfeb3a51c43d9f3fc950e829b (cherry picked from commit 0f8ad35)
- Loading branch information
1 parent
ea3fa57
commit c041397
Showing
2 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters