diff options
| author | Christian Breunig <christian@breunig.cc> | 2023-06-03 13:08:31 +0200 | 
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2023-06-03 13:08:31 +0200 | 
| commit | 12b7da289665c75c3839b32c77a491d8909f3e73 (patch) | |
| tree | f5d28c93c0a747a34d8d72ba03cee064fd7cafc7 | |
| parent | b88a88f3e8af26cb24ceab86d37b44f10d3ce341 (diff) | |
| download | vyos-1x-12b7da289665c75c3839b32c77a491d8909f3e73.tar.gz vyos-1x-12b7da289665c75c3839b32c77a491d8909f3e73.zip  | |
T5257: add verify_vrf() check for flow-accounting
| -rwxr-xr-x | src/conf_mode/flow_accounting_conf.py | 2 | 
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']  | 
