blob: 34b67c89759caf96be9cbe08acd101a44e6e11ab [file] [log] [blame]
Jan Kundrát2ccae182018-09-13 21:24:38 +02001[Unit]
2Description=Install YANG and initial data for __MODEL__
3Requires=sysrepod.service
4ConditionKernelCommandLine=czechlight=__MODEL__
5ConditionPathExistsGlob=!/etc/sysrepo/yang/__YANG__@*.yang
6Before=sysrepod.service
7
8[Service]
9Type=oneshot
10ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/cla-sysrepo/yang/__YANG__.yang
11ExecStart=/usr/bin/sysrepoctl --module __YANG__ --feature-enable __FEATURE__
12ExecStart=/usr/bin/sysrepocfg --datastore=startup --import=/usr/share/cla-sysrepo/yang/__MODEL__.json __YANG__
Jan Kundrátd31efeb2019-10-08 00:08:49 +020013ExecStart=/bin/cp -a /etc/sysrepo /cfg/etc/
Jan Kundrát2ccae182018-09-13 21:24:38 +020014
15[Install]
16WantedBy=multi-user.target