summaryrefslogtreecommitdiff
path: root/src/conf_mode/flow_accounting_conf.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-03 13:08:15 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-03 13:08:15 +0200
commitb88a88f3e8af26cb24ceab86d37b44f10d3ce341 (patch)
tree9ebbda04c81abb1b0812af3db5745a2171f9e758 /src/conf_mode/flow_accounting_conf.py
parent6202e6e32c5e5677ea01337a262d76c460ac89a3 (diff)
downloadvyos-1x-b88a88f3e8af26cb24ceab86d37b44f10d3ce341.tar.gz
vyos-1x-b88a88f3e8af26cb24ceab86d37b44f10d3ce341.zip
T5257: import cleanup for flow-accounting
Diffstat (limited to 'src/conf_mode/flow_accounting_conf.py')
-rwxr-xr-xsrc/conf_mode/flow_accounting_conf.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/flow_accounting_conf.py b/src/conf_mode/flow_accounting_conf.py
index 327b77991..dc9f860c7 100755
--- a/src/conf_mode/flow_accounting_conf.py
+++ b/src/conf_mode/flow_accounting_conf.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2018-2022 VyOS maintainers and contributors
+# Copyright (C) 2018-2023 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -18,15 +18,12 @@ import os
import re
from sys import exit
-import ipaddress
-
from ipaddress import ip_address
from vyos.base import Warning
from vyos.config import Config
from vyos.configdict import dict_merge
from vyos.ifconfig import Section
-from vyos.ifconfig import Interface
from vyos.template import render
from vyos.util import call
from vyos.util import cmd
@@ -223,7 +220,7 @@ def verify(flow_config):
netflow_vrf = None
if 'vrf' in flow_config:
netflow_vrf = flow_config['vrf']
-
+
# check if at least one NetFlow collector is configured if NetFlow configuration is presented
if 'server' not in flow_config['netflow']:
raise ConfigError('You need to configure at least one NetFlow server!')