summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-03 13:08:31 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-03 13:08:31 +0200
commit12b7da289665c75c3839b32c77a491d8909f3e73 (patch)
treef5d28c93c0a747a34d8d72ba03cee064fd7cafc7 /src
parentb88a88f3e8af26cb24ceab86d37b44f10d3ce341 (diff)
downloadvyos-1x-12b7da289665c75c3839b32c77a491d8909f3e73.tar.gz
vyos-1x-12b7da289665c75c3839b32c77a491d8909f3e73.zip
T5257: add verify_vrf() check for flow-accounting
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/flow_accounting_conf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/flow_accounting_conf.py b/src/conf_mode/flow_accounting_conf.py
index dc9f860c7..c36d52e05 100755
--- a/src/conf_mode/flow_accounting_conf.py
+++ b/src/conf_mode/flow_accounting_conf.py
@@ -23,6 +23,7 @@ from ipaddress import ip_address
from vyos.base import Warning
from vyos.config import Config
from vyos.configdict import dict_merge
+from vyos.configverify import verify_vrf
from vyos.ifconfig import Section
from vyos.template import render
from vyos.util import call
@@ -191,6 +192,7 @@ def verify(flow_config):
sflow_collector_ipver = ip_address(server).version
# check if vrf is defined for Sflow
+ verify_vrf(flow_config)
sflow_vrf = None
if 'vrf' in flow_config:
sflow_vrf = flow_config['vrf']