diff options
| author | Christian Breunig <christian@breunig.cc> | 2024-12-11 20:14:45 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2024-12-16 22:24:50 +0100 |
| commit | 55683a8406e17408021437cb35b57c48bd8b2ab1 (patch) | |
| tree | bc149befb6ceadc94bf57503c65dd9267339edf0 /python/vyos/configverify.py | |
| parent | 779f311e7fe81e3c85de28f13e4e12e33b255483 (diff) | |
| download | veeos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.tar.gz veeos-1x-55683a8406e17408021437cb35b57c48bd8b2ab1.zip | |
configd: T6746: handle FRR config reload as last step in commit
Diffstat (limited to 'python/vyos/configverify.py')
| -rw-r--r-- | python/vyos/configverify.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index 4450dc16b..4084425b1 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -538,7 +538,10 @@ def verify_eapol(config: dict): for ca_cert in config['eapol']['ca_certificate']: verify_pki_ca_certificate(config, ca_cert) -def has_frr_protocol_in_dict(config_dict: dict, protocol: str, vrf: str=None) -> bool: +def has_frr_protocol_in_dict(config_dict: dict, protocol: str) -> bool: + vrf = None + if config_dict and 'vrf_context' in config_dict: + vrf = config_dict['vrf_context'] if vrf and protocol in (dict_search(f'vrf.name.{vrf}.protocols', config_dict) or []): return True if config_dict and protocol in config_dict: |
