Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
afbbb581
Commit
afbbb581
authored
Nov 22, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[204-move-models-] Updated doxygen
parent
bd65abeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
5 deletions
+23
-5
src/lib/yang/yang.dox
src/lib/yang/yang.dox
+23
-5
No files found.
src/lib/yang/yang.dox
View file @
afbbb581
...
...
@@ -114,13 +114,13 @@ For details, see Section 20 "YANG/NETCONF support" in the Kea User's Guide.
You also need to install YANG schemas, so the unit-tests are able to
retrieve, add, update and generally interact with the sysrepo information.
There are several production Kea models (src/
lib
/yang/mod
els) and one test
specific model (src/
lib
/yang/
test
s/keatest-module.yang).
There are several production Kea models (src/
share
/yang/mod
ules/kea*.yang)
and one test
specific model (src/
share
/yang/
module
s/keatest-module
*
.yang).
To install the test module, issue the following command:
@verbatim
sudo sysrepoctl --install --yang=src/
lib
/yang/
test
s/keatest-module.yang
sudo sysrepoctl --install --yang=src/
share
/yang/
module
s/keatest-module
*
.yang
@endverbatim
To verify that you have the schemas installed, do this:
...
...
@@ -135,7 +135,7 @@ deinstall them before reinstalling a more recent version:
sudo sysrepoctl --uninstall --module=<module-name>
@endverbatim
Tests use these modules you can find in src/
lib
/yang/mode
l
s in addition
Tests use these modules you can find in src/
share
/yang/mod
ul
es in addition
of keatest-module:
- ietf-dhcpv6-server
- kea-ctrl-agent
...
...
@@ -143,9 +143,27 @@ of keatest-module:
- kea-dhcp4-server
- kea-dhcp6-server
Those models depend on the following mode
l
s:
Those models depend on the following mod
ul
es:
- ietf-inet-types
- ietf-yang-types
- ietf-interfaces
- kea-types
- kea-logging
- kea-dhcp-types
Those models are extracted from the IETF DHCPv6 YNAG draft too:
- ietf-dhcpv6-client
- ietf-dhcpv6-relay
All are available in the src/share/yang/modules directory using the
<module-name>[@<revision>].yang syntax for file names.
src/share/yang/modules/utils provides a few utilities for developers:
- check-revisions.sh which verifies if the revision in the file name
and in the file content matches
- check-hashes.sh which detects updates in the file content without
a revision change using the SHA-256 hash of the to YIN translation.
- gen-revisions.sh which produces the module / revision table of
the yang_revisions.h header file.
Finally, sysrepod daemon must run be running (as root):
@verbatim
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment