blob: 34b67c89759caf96be9cbe08acd101a44e6e11ab [file] [log] [blame]
[Unit]
Description=Install YANG and initial data for __MODEL__
Requires=sysrepod.service
ConditionKernelCommandLine=czechlight=__MODEL__
ConditionPathExistsGlob=!/etc/sysrepo/yang/__YANG__@*.yang
Before=sysrepod.service
[Service]
Type=oneshot
ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/cla-sysrepo/yang/__YANG__.yang
ExecStart=/usr/bin/sysrepoctl --module __YANG__ --feature-enable __FEATURE__
ExecStart=/usr/bin/sysrepocfg --datastore=startup --import=/usr/share/cla-sysrepo/yang/__MODEL__.json __YANG__
ExecStart=/bin/cp -a /etc/sysrepo /cfg/etc/
[Install]
WantedBy=multi-user.target