From 0f7983008e5fc8d5ce5f88192103b93dc997e2bf Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 25 Apr 2024 17:41:35 +0200 Subject: [PATCH] confd: allow admin user to send factory reset rpc using sysrepocfg Fixes #416 Signed-off-by: Joachim Wiberg --- src/confd/bin/bootstrap | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/confd/bin/bootstrap b/src/confd/bin/bootstrap index 7e0fe87b..46312055 100755 --- a/src/confd/bin/bootstrap +++ b/src/confd/bin/bootstrap @@ -245,8 +245,10 @@ sysrepoctl -c ietf-netconf -g wheel -p 0660 \ -e url \ -e xpath \ -e confirmed-commit -# Allow wheel group users (admin) to modify NACM -sysrepoctl -c ietf-netconf-acm -g wheel -p 0660 +# Allow wheel group users (admin) to modify NACM and do factory reset +sysrepoctl -c ietf-netconf-acm -g wheel -p 0660 +sysrepoctl -c ietf-factory-default -g wheel -p 0660 +sysrepoctl -c sysrepo-plugind -g wheel -p 0660 # On first boot, install factory-config as startup-config. Due to a # limitation in sysrepo we cannot initialize ietf-netconf-acm, so we