summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-13 20:42:57 +0200
committerGitHub <noreply@github.com>2020-05-13 20:42:57 +0200
commit439a7bbe4df5492808cd11fc34237b9d4acc093b (patch)
tree86b11df631d8905883adfa36cc271b212e2d1e74
parenta23b2d038aaa1275d2991023cfd7ed08f64efbc3 (diff)
parenteeefd8a7ac48455231c1361af53976477c540f7d (diff)
downloadvyos-1x-439a7bbe4df5492808cd11fc34237b9d4acc093b.tar.gz
vyos-1x-439a7bbe4df5492808cd11fc34237b9d4acc093b.zip
Merge pull request #409 from DmitriyEshenko/fix-flow-acct01
flow-accounting: T2456: Replace old function
-rwxr-xr-xsrc/conf_mode/flow_accounting_conf.py2
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+$')