diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-05-13 18:36:54 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-05-13 18:36:54 +0000 |
commit | eeefd8a7ac48455231c1361af53976477c540f7d (patch) | |
tree | 86b11df631d8905883adfa36cc271b212e2d1e74 /src/conf_mode/flow_accounting_conf.py | |
parent | a23b2d038aaa1275d2991023cfd7ed08f64efbc3 (diff) | |
download | vyos-1x-eeefd8a7ac48455231c1361af53976477c540f7d.tar.gz vyos-1x-eeefd8a7ac48455231c1361af53976477c540f7d.zip |
flow-accounting: T2456: Replace old function
Diffstat (limited to 'src/conf_mode/flow_accounting_conf.py')
-rwxr-xr-x | src/conf_mode/flow_accounting_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/flow_accounting_conf.py b/src/conf_mode/flow_accounting_conf.py index 11df81b1d..d691e6abd 100755 --- a/src/conf_mode/flow_accounting_conf.py +++ b/src/conf_mode/flow_accounting_conf.py @@ -281,7 +281,7 @@ def verify(config): # check if configured netflow source-ip exist in the system if config['netflow']['source-ip']: source_ip_presented = None - for iface in Interface.listing(): + for iface in Section.interfaces(): for address in Interface(iface).get_addr(): # check an IP regex_filter = re.compile('^(?!(127)|(::1)|(fe80))(?P<ipaddr>[a-f\d\.:]+)/\d+$') |