clearfog: Unit files for the SDN ROADM

Change-Id: I1df79eddd217bb757f4ad2e8e67ad7914d6b9aee
diff --git a/package/cla-sysrepo/cla-install-yang.service.in b/package/cla-sysrepo/cla-install-yang.service.in
new file mode 100644
index 0000000..c3df8ea
--- /dev/null
+++ b/package/cla-sysrepo/cla-install-yang.service.in
@@ -0,0 +1,15 @@
+[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__
+
+[Install]
+WantedBy=multi-user.target