From 52f787c50c8c70ce549e804d1da1218d3045e1c9 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Tue, 25 Sep 2018 11:24:44 +0200 Subject: [PATCH] [master] Updated netconf.xml --- doc/guide/netconf.xml | 55 +++++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/doc/guide/netconf.xml b/doc/guide/netconf.xml index 9c495ba1d..d827048ec 100644 --- a/doc/guide/netconf.xml +++ b/doc/guide/netconf.xml @@ -66,7 +66,7 @@ tar zxvf sysrepo-0.7.5.tar.gz cd sysrepo-0.7.5 mkdir build cd build -cmake -DCMAKE_BUILD_TYPE=Debug -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON\ +cmake -DCMAKE_BUILD_TYPE=Debug -DGEN_LANGUAGE_BINDINGS=ON -DGEN_CPP_BINDINGS=ON \ -DGEN_PYTHON_BINDINGS=OFF -DGEN_LUA_BINDINGS=OFF -DENABLE_TESTS=OFF .. make sudo make install @@ -119,43 +119,45 @@ ietf-ip | 2014-06-16 | Installed | | Installing Kea YANG modules. There are two major modules that Kea is able to support: kea-dhcp4-server and ietf-dhcp6-server. Note that while there is an active effort at DHC working group at IETF to develop an DHCPv6 YANG model, -similar initiative for DHCPv4 died long time ago. As such, Kea uses IETF model -for DHCPv6 and its own dedicated model for DHCPv4. Those two models have extra +similar initiative for DHCPv4 died long time ago. As such, Kea uses its own +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 Kea models, do the following: +src/lib/libyang/models. To install models, do the following: cd src/lib/yang/models -sudo sysrepoctl -i -g kea-dhcp4-server.yang -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ -s ./ -sudo sysrepoctl -i -g ietf-dhcp6-server.yang -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ -s ./ +sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang -s . -g ietf-dhcpv6-server.yang +sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang -s . -g kea-dhcp4-server.yang +sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang -s . -g ietf-dhcp6-server.yang Note the first -s parameter specifies the location of your YANG schema -directory. You can check it with sysrepoctl -l. This is a parameter that is +repository. You can check it with sysrepoctl -l. This is a parameter that is configured during sysrepo compilation. - + The installation should look similar to the following: -$ sudo sysrepoctl -i -g ietf-dhcp6-server.yang -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ -s ./ -Installing a new module from file 'ietf-dhcp6-server.yang'... -Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcp6-server@2018-07-14.yang'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-dhcp6-options'... -Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcp6-options@2018-07-14.yang'... -Resolving dependency: 'ietf-dhcp6-options' imports 'ietf-dhcp6-types'... -Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcp6-types@2018-07-14.yang'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-dhcp6-types'... -Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcp6-types@2018-07-14.yang'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-interfaces'... +$ sudo sysrepoctl -i -s /home/thomson/devel/sysrepo-0.7.5/build/repository/yang -s . -g ietf-dhcpv6-server.yang +Installing a new module from file 'ietf-dhcpv6-server.yang'... +Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/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.5/build/repository/yang/ietf-dhcpv6-options@2018-07-14.yang'... +Resolving dependency: 'ietf-dhcpv6-options' imports 'ietf-dhcpv6-types'... +Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcpv6-types@2018-07-14.yang'... +Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-dhcpv6-types'... +Installing the YANG file to '/home/thomson/devel/sysrepo-0.7.5/build/repository/yang/ietf-dhcpv6-types@2018-07-14.yang'... +Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-interfaces'... Schema of the module ietf-interfaces is already installed, skipping... -Installing data files for module 'ietf-dhcp6-server'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-dhcp6-options'... -Skipping installation of data files for module 'ietf-dhcp6-options'... -Resolving dependency: 'ietf-dhcp6-options' imports 'ietf-dhcp6-types'... -Skipping installation of data files for module 'ietf-dhcp6-types'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-dhcp6-types'... -Skipping installation of data files for module 'ietf-dhcp6-types'... -Resolving dependency: 'ietf-dhcp6-server' imports 'ietf-interfaces'... +Installing data files for module 'ietf-dhcpv6-server'... +Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-dhcpv6-options'... +Skipping installation of data files for module 'ietf-dhcpv6-options'... +Resolving dependency: 'ietf-dhcpv6-options' imports 'ietf-dhcpv6-types'... +Skipping installation of data files for module 'ietf-dhcpv6-types'... +Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-dhcpv6-types'... +Skipping installation of data files for module 'ietf-dhcpv6-types'... +Resolving dependency: 'ietf-dhcpv6-server' imports 'ietf-interfaces'... Installing data files for module 'ietf-interfaces'... Notifying sysrepo about the change... Install operation completed successfully. @@ -181,6 +183,7 @@ 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 | | | | ietf-dhcpv6-types | 2018-01-30 | Imported | | | | -- GitLab