diff options
Diffstat (limited to 'src/conf_mode/interfaces-macsec.py')
-rwxr-xr-x | src/conf_mode/interfaces-macsec.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-macsec.py b/src/conf_mode/interfaces-macsec.py index 45fa3f5af..5045a9856 100755 --- a/src/conf_mode/interfaces-macsec.py +++ b/src/conf_mode/interfaces-macsec.py @@ -95,6 +95,9 @@ def verify(macsec): # Logic to check static configuration if dict_search('security.static', macsec) != None: + # tx-key must be defined + if dict_search('security.static.tx_key', macsec) == None: + raise ConfigError('Static MACsec tx-key must be defined.') tx_len = len(dict_search('security.static.tx_key', macsec)) |