Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Install YANG and initial data for __MODEL__ |
| 3 | Requires=sysrepod.service |
| 4 | ConditionKernelCommandLine=czechlight=__MODEL__ |
| 5 | ConditionPathExistsGlob=!/etc/sysrepo/yang/__YANG__@*.yang |
| 6 | Before=sysrepod.service |
| 7 | |
| 8 | [Service] |
| 9 | Type=oneshot |
| 10 | ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/cla-sysrepo/yang/__YANG__.yang |
| 11 | ExecStart=/usr/bin/sysrepoctl --module __YANG__ --feature-enable __FEATURE__ |
| 12 | ExecStart=/usr/bin/sysrepocfg --datastore=startup --import=/usr/share/cla-sysrepo/yang/__MODEL__.json __YANG__ |
| 13 | |
| 14 | [Install] |
| 15 | WantedBy=multi-user.target |