diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-05-31 15:40:49 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-05-31 15:40:49 +0200 |
commit | 99a9fafb980c260426af75d0afb07fac61b0983c (patch) | |
tree | 830195b765f2c428db656cb27facabe2ffbcc296 /src | |
parent | b8cd453177feebc44aee53657bfd2bbcea7a8d66 (diff) | |
download | vyos-1x-99a9fafb980c260426af75d0afb07fac61b0983c.tar.gz vyos-1x-99a9fafb980c260426af75d0afb07fac61b0983c.zip |
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']) |