summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-12 21:16:12 +0100
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-13 20:40:01 +0000
commit5e527b2b01e8e994caa2458f4fead445294a27c9 (patch)
tree5728d0c20099ee3440c58b53979c4a0d20eb080f /src/conf_mode
parentef64c051d0c90a1ddafe80b4509ffdf1e1035b50 (diff)
downloadvyos-1x-5e527b2b01e8e994caa2458f4fead445294a27c9.tar.gz
vyos-1x-5e527b2b01e8e994caa2458f4fead445294a27c9.zip
pki: T6034: add dependencies to trigger rpki re-run on openssh key update
(cherry picked from commit 0f8bf6bd0fb29cfd638e9920674e7ad1d1d25350)
Diffstat (limited to 'src/conf_mode')
-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):