diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-07 09:48:47 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-07 09:48:47 +0100 |
commit | fb12d6b97fd2ae836d9f4d363908c7721e854c14 (patch) | |
tree | 493cd8d937c9dc86cba6467d1956c2f337f94946 | |
parent | ee02d6c2c1d2d8641a20e18cdb847a4129429c08 (diff) | |
download | vyos-1x-fb12d6b97fd2ae836d9f4d363908c7721e854c14.tar.gz vyos-1x-fb12d6b97fd2ae836d9f4d363908c7721e854c14.zip |
vrf: T31: rephrase error messages
-rwxr-xr-x | src/conf_mode/vrf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index db546956b..cb4bbfcce 100755 --- a/src/conf_mode/vrf.py +++ b/src/conf_mode/vrf.py @@ -157,21 +157,21 @@ def verify(vrf_config): # ensure VRF is not assigned to any interface for vrf in vrf_config['vrf_remove']: if len(vrf['members']) > 0: - raise ConfigError('VRF "{}" can not be deleted as it has active members'.format(vrf['name'])) + raise ConfigError('VRF {} can not be deleted. It has active member interfaces!'.format(vrf['name'])) table_ids = [] for vrf in vrf_config['vrf_add']: # table id is mandatory if not vrf['table']: - raise ConfigError('VRF "{}" table id is mandatory'.format(vrf['name'])) + raise ConfigError('VRF {} table id is mandatory!'.format(vrf['name'])) # routing table id can't be changed - OS restriction if vrf['table_mod']: - raise ConfigError('VRF "{}" modification of table id is not possible'.format(vrf['name'])) + raise ConfigError('VRF {} table id modification is not possible!'.format(vrf['name'])) # VRf routing table ID must be unique on the system if vrf['table'] in table_ids: - raise ConfigError('VRF "{}" routing table id "{}" not unique'.format(vrf['name'], vrf['table'])) + raise ConfigError('VRF {} table id "{}" is not unique!'.format(vrf['name'], vrf['table'])) table_ids.append(vrf['table']) return None |