From 2371c26b55db133b3864e54f460a046898e55abf Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Sat, 18 May 2024 15:13:44 +0000 Subject: T5169: Allow to set CGNAT multiple internal pools Allow to set multiple CGNAT internal pools ``` set nat cgnat pool internal int-01 range '100.64.0.0/28' set nat cgnat pool internal int-01 range '100.64.222.11-100.64.222.14' ``` --- src/conf_mode/nat_cgnat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode') diff --git a/src/conf_mode/nat_cgnat.py b/src/conf_mode/nat_cgnat.py index fbfb431f6..5ad65de80 100755 --- a/src/conf_mode/nat_cgnat.py +++ b/src/conf_mode/nat_cgnat.py @@ -253,7 +253,7 @@ def generate(config): int_pool_name: str = rule_config['source']['pool'] external_ranges: list = [range for range in config['pool']['external'][ext_pool_name]['range']] - internal_ranges: list = [config['pool']['internal'][int_pool_name]['range']] + internal_ranges: list = [range for range in config['pool']['internal'][int_pool_name]['range']] external_list_hosts_count = [] external_list_hosts = [] internal_list_hosts_count = [] -- cgit v1.2.3