summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorKyrylo Yatsenko <hedrok@gmail.com>2025-10-17 13:58:01 +0300
committerKyrylo Yatsenko <hedrok@gmail.com>2025-10-21 19:57:40 +0300
commitc4632bb6ad6c055fb7fe5a5c055354c6895ba8e5 (patch)
tree168bce87c31c814290ec95393c3da4e1ab893a42 /src/services
parent70b7818f75f55de14214b85a12b8ec13d98ff89b (diff)
downloadvyos-1x-c4632bb6ad6c055fb7fe5a5c055354c6895ba8e5.tar.gz
vyos-1x-c4632bb6ad6c055fb7fe5a5c055354c6895ba8e5.zip
T5811: Make static dhcp-interface routes robust
Solves the problem that vyos-configs in FRRender caches configuation and DHCP changes are ignored. * Add src/helpers/vyos-request-configd-update.py that requests vyos-configd to update FRR configuration. * Make dhclient hooks use it instead of calling protocols_static.py * Make FRRender cache not only configuration but also DHCP gateways so that is any of them changes, FRR configuration is updated
Diffstat (limited to 'src/services')
-rwxr-xr-xsrc/services/vyos-configd3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/services/vyos-configd b/src/services/vyos-configd
index 1a207f876..2f060dc82 100755
--- a/src/services/vyos-configd
+++ b/src/services/vyos-configd
@@ -33,6 +33,7 @@ from enum import Enum
import zmq
from vyos.defaults import directories
+from vyos.defaults import vyos_configd_socket_path
from vyos.utils.boot import boot_configuration_complete
from vyos.configsource import ConfigSourceString
from vyos.configsource import ConfigSourceError
@@ -57,7 +58,7 @@ if debug:
else:
logger.setLevel(logging.INFO)
-SOCKET_PATH = 'ipc:///run/vyos-configd.sock'
+SOCKET_PATH = vyos_configd_socket_path
MAX_MSG_SIZE = 65535
PAD_MSG_SIZE = 6