summaryrefslogtreecommitdiff
path: root/src/conf_mode/pki.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-12 21:16:12 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-12 21:16:12 +0100
commit0f8bf6bd0fb29cfd638e9920674e7ad1d1d25350 (patch)
treeadd48a7196c0f3718e2f408ac2e755d60b046339 /src/conf_mode/pki.py
parentac2d7dfac6073d0f232191ec494f78a8d12889e4 (diff)
downloadvyos-1x-0f8bf6bd0fb29cfd638e9920674e7ad1d1d25350.tar.gz
vyos-1x-0f8bf6bd0fb29cfd638e9920674e7ad1d1d25350.zip
pki: T6034: add dependencies to trigger rpki re-run on openssh key update
Diffstat (limited to 'src/conf_mode/pki.py')
-rwxr-xr-xsrc/conf_mode/pki.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/conf_mode/pki.py b/src/conf_mode/pki.py
index 2d076e42d..3ab6ac5c3 100755
--- a/src/conf_mode/pki.py
+++ b/src/conf_mode/pki.py
@@ -24,7 +24,6 @@ from vyos.config import config_dict_merge
from vyos.configdep import set_dependents
from vyos.configdep import call_dependents
from vyos.configdict import node_changed
-from vyos.configdiff import Diff
from vyos.defaults import directories
from vyos.pki import is_ca_certificate
from vyos.pki import load_certificate
@@ -66,6 +65,10 @@ sync_search = [
'path': ['interfaces', 'sstpc'],
},
{
+ 'keys': ['key'],
+ 'path': ['protocols', 'rpki', 'cache'],
+ },
+ {
'keys': ['certificate', 'ca_certificate', 'local_key', 'remote_key'],
'path': ['vpn', 'ipsec'],
},
@@ -88,7 +91,8 @@ sync_translate = {
'remote_key': 'key_pair',
'shared_secret_key': 'openvpn',
'auth_key': 'openvpn',
- 'crypt_key': 'openvpn'
+ 'crypt_key': 'openvpn',
+ 'key': 'openssh',
}
def certbot_delete(certificate):