summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 20:40:16 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-01 21:26:16 +0200
commite5af1f0905991103b12302892e6f0070bbb7b770 (patch)
tree6167a7c3aaa92f75f91788855fd10d294b04c89c /debian
parent5bb27f0c6220fd940b63cdd37a60c312c0ac3efd (diff)
downloadvyos-1x-e5af1f0905991103b12302892e6f0070bbb7b770.tar.gz
vyos-1x-e5af1f0905991103b12302892e6f0070bbb7b770.zip
ssh: T6192: allow binding to multiple VRF instances
Currently VyOS only supports binding a service to one individual VRF. It might become handy to have the services (initially it will be VRF, NTP and SNMP) be bound to multiple VRFs. Changed VRF from leafNode to multi leafNode with defaultValue: default - which is the name of the default VRF.
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index 0e6e3c863..78e895d6e 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -194,3 +194,10 @@ systemctl enable vyos-config-cloud-init.service
# Update XML cache
python3 /usr/lib/python3/dist-packages/vyos/xml_ref/update_cache.py
+
+# Generate hardlinks for systemd units for multi VRF support
+# as softlinks will fail in systemd:
+# symlink target name type "ssh.service" does not match source, rejecting.
+if [ ! -f /lib/systemd/system/ssh@.service ]; then
+ ln /lib/systemd/system/ssh.service /lib/systemd/system/ssh@.service
+fi