From 12b7da289665c75c3839b32c77a491d8909f3e73 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 3 Jun 2023 13:08:31 +0200 Subject: T5257: add verify_vrf() check for flow-accounting --- src/conf_mode/flow_accounting_conf.py | 2 ++ 1 file changed, 2 insertions(+) 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'] -- cgit v1.2.3