commit | 785ceb3f115067ef49cc4c0465498e3c32027e41 | [log] [tgz] |
---|---|---|
author | Tomáš Pecka <tomas.pecka@fit.cvut.cz> | Thu Oct 15 18:28:47 2020 +0200 |
committer | Tomáš Pecka <tomas.pecka@fit.cvut.cz> | Fri Oct 16 11:43:43 2020 +0200 |
tree | dc939f590a4a8ca81e919df24fc94564891679fb | |
parent | 83569026dc8c366f562579df91de76ad36fae170 [diff] [blame] |
Build lldp-systemd-networkd-sysrepod Change-Id: I2c1efc2729d4a84fad4d38dd7048801e39423cde Depends-on: https://cesnet-gerrit-czechlight/c/CzechLight/lldp-systemd-networkd-sysrepo/+/3117 Depends-on: https://cesnet-gerrit-public/c/CzechLight/lldp-systemd-networkd-sysrepo/+/3117 Depends-on: https://gerrit.cesnet.cz/c/CzechLight/lldp-systemd-networkd-sysrepo/+/3117
diff --git a/package/lldp-systemd-networkd-sysrepo/lldp-systemd-networkd-sysrepo-install-yang.service b/package/lldp-systemd-networkd-sysrepo/lldp-systemd-networkd-sysrepo-install-yang.service new file mode 100644 index 0000000..003f7e2 --- /dev/null +++ b/package/lldp-systemd-networkd-sysrepo/lldp-systemd-networkd-sysrepo-install-yang.service
@@ -0,0 +1,14 @@ +[Unit] +Description=Install YANG and initial data for lldp-systemd-networkd-sysrepo +Requires=sysrepod.service +Before=sysrepod.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/lldp-systemd-networkd-sysrepo/yang/czechlight-lldp.yang +ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/lldp-systemd-networkd-sysrepo/yang/iana-afn-safi@2013-07-04.yang +ExecStart=/usr/bin/sysrepoctl --install --yang /usr/share/lldp-systemd-networkd-sysrepo/yang/ietf-inet-types@2013-07-15.yang +ExecStart=/bin/cp -a /etc/sysrepo /cfg/etc/ + +[Install] +WantedBy=multi-user.target