summaryrefslogtreecommitdiff
path: root/src/conf_mode/flow_accounting_conf.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-24 22:49:36 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-25 23:27:15 +0100
commit0030f9fc844036a0d1a0381a9096b1b9d368e35f (patch)
treea2e4860df8cedaec882e9f4c09ffcac2f624c476 /src/conf_mode/flow_accounting_conf.py
parent015e26acc8ed65b6a7d778107a83ee8604950f90 (diff)
downloadvyos-1x-0030f9fc844036a0d1a0381a9096b1b9d368e35f.tar.gz
vyos-1x-0030f9fc844036a0d1a0381a9096b1b9d368e35f.zip
flow-accounting: T4099: rename "netflow source-ip" to source-address
sFlow uses the source-address CLI node and netflow uses source-ip this is just confusing and should be synced to the common source-address CLI node.
Diffstat (limited to 'src/conf_mode/flow_accounting_conf.py')
-rwxr-xr-xsrc/conf_mode/flow_accounting_conf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/flow_accounting_conf.py b/src/conf_mode/flow_accounting_conf.py
index 5f903bf69..9467e805c 100755
--- a/src/conf_mode/flow_accounting_conf.py
+++ b/src/conf_mode/flow_accounting_conf.py
@@ -239,9 +239,9 @@ def verify(flow_config):
raise ConfigError('You need to configure at least one NetFlow server!')
# check if configured netflow source-ip exist in the system
- if 'source_ip' in flow_config['netflow']:
- if not is_addr_assigned(flow_config['netflow']['source_ip']):
- print(f'Warning: your "netflow source-ip" does not exist in the system!')
+ if 'source_address' in flow_config['netflow']:
+ if not is_addr_assigned(flow_config['netflow']['source_address']):
+ print(f'Warning: Configured "netflow source-address" does not exist on the system!')
# check if engine-id compatible with selected protocol version
if 'engine_id' in flow_config['netflow']: