dedicated models for DHCPv4 and DHCPv6 but partially supports the IETF model
for DHCPv6. Those three models have extra
models as dependencies. The dependency models are also provided in
-src/lib/libyang/models. To install models, do the following:
+src/lib/libyang/models. To install models from sources, do the following:
<screen>
-cd src/lib/yang/models
-sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g ietf-dhcpv6-server.yang
-sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g kea-dhcp4-server.yang
-sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g kea-dhcp6-server.yang
+cd src/share/yang/modules
+sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g ietf-dhcpv6-server*.yang
+sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g kea-dhcp4-server*.yang
+sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g kea-dhcp6-server*.yang
</screen>
Note the first -s parameter specifies the location of your YANG schema
The installation should look similar to the following:
<screen>
-$ sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g ietf-dhcpv6-server.yang
-Installing a new module from file 'ietf-dhcpv6-server.yang'...
+$ sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.6/build/repository/yang -s . -g ietf-dhcpv6-server*.yang
+Installing a new module from file 'ietf-dhcpv6-server@2018-11-20.yang'...
Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.6/build/repository/yang/ietf-dhcpv6-server@2018-07-14.yang'...
Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-dhcpv6-options'...
Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.6/build/repository/yang/ietf-dhcpv6-options@2018-07-14.yang'...
iana-if-type | 2014-05-08 | Installed | | | |
ietf-interfaces | 2014-05-08 | Installed | root:root | 666 | |
ietf-ip | 2014-06-16 | Installed | | | |
-kea-dhcp4-server | 2018-07-14 | Installed | root:root | 666 | |
-kea-dhcp6-server | 2018-07-14 | Installed | root:root | 666 | |
-ietf-dhcpv6-server | 2018-03-04 | Installed | root:root | 666 | |
-ietf-dhcpv6-options | 2018-03-04 | Imported | | | |
+kea-dhcp4-server | 2018-11-20 | Installed | root:root | 666 | |
+kea-dhcp6-server | 2018-11-20 | Installed | root:root | 666 | |
+ietf-dhcpv6-server | 2018-09-04 | Installed | root:root | 666 | |
+ietf-dhcpv6-options | 2018-09-04 | Imported | | | |
ietf-dhcpv6-types | 2018-01-30 | Imported | | | |
</screen>
</para>
<itemizedlist>
<listitem>
<simpara>
- Open a connection with the sysrepo enviroment and establish
+ For each managed server get the initial configuration from
+ the server through the control scoket.
+ </simpara>
+ </listitem>
+
+ <listitem>
+ <simpara>
+ Open a connection with the sysrepo environment and establish
two sessions with the startup and running datastores.
</simpara>
</listitem>
<listitem>
<simpara>
- For each managed server get the initial configuration from
- the server through the control scoket.
+ Check that used (not essential) and required (essential)
+ modules are installed in the sysrepo repository at the
+ right revision.
</simpara>
</listitem>