blob: c3df8ea3be2cdc65f1d8ab71e51e0cb70d43aa43 [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__
13
14[Install]
15WantedBy=multi-user.target