diff options
author | Christian Breunig <christian@breunig.cc> | 2025-06-02 22:34:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-02 22:34:06 +0200 |
commit | c32b30f1e8f560bff935c48a7b4d1993b3a622a5 (patch) | |
tree | 7c15e424cb667abf0cc23a0a3df48a9ae98f02be /src | |
parent | 474f367604c3f2471b295ab5702a103e62a41313 (diff) | |
parent | 99a9fafb980c260426af75d0afb07fac61b0983c (diff) | |
download | vyos-1x-c32b30f1e8f560bff935c48a7b4d1993b3a622a5.tar.gz vyos-1x-c32b30f1e8f560bff935c48a7b4d1993b3a622a5.zip |
Merge pull request #4537 from sarthurdev/T7237
nat: T7237: Remove expensive NAT address check
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/nat.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py index 6c88e5cfd..a938021ba 100755 --- a/src/conf_mode/nat.py +++ b/src/conf_mode/nat.py @@ -31,7 +31,6 @@ from vyos.utils.file import write_file from vyos.utils.process import cmd from vyos.utils.process import run from vyos.utils.process import call -from vyos.utils.network import is_addr_assigned from vyos.utils.network import interface_exists from vyos.firewall import fqdn_config_parse from vyos import ConfigError @@ -176,12 +175,6 @@ def verify(nat): if 'exclude' not in config and 'backend' not in config['load_balance']: raise ConfigError(f'{err_msg} translation requires address and/or port') - addr = dict_search('translation.address', config) - if addr != None and addr != 'masquerade' and not is_ip_network(addr): - for ip in addr.split('-'): - if not is_addr_assigned(ip): - Warning(f'IP address {ip} does not exist on the system!') - # common rule verification verify_rule(config, err_msg, nat['firewall_group']) |