2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

[#2601] fix typos in NETCONF code

This commit is contained in:
Andrei Pavel 2022-11-08 12:12:53 +02:00 committed by Razvan Becheriu
parent 13142fea93
commit 582e84a83e
5 changed files with 6 additions and 6 deletions

View File

@ -1114,7 +1114,7 @@ are done at the same configuration state and no change happens between exporting
.. note::
Sysrepo v0 does not support import/export of all YANG modules. This capability was added in
Sysrepo v1. Users that are migrating from Sysreo v0 will need to do per-module backups. This has
Sysrepo v1. Users that are migrating from Sysrepo v0 will need to do per-module backups. This has
the added benefit of isolating potential failures and preventing them from affecting all
modules. The command is the same except it has the module name added to it at the end.

View File

@ -1106,8 +1106,8 @@ def _install_libyang_from_sources(ignore_errors = False):
def _install_sysrepo_from_sources(ignore_errors = False):
"""Install sysrepo from sources."""
for prefix in ['/usr', '/usr/local']:
sysrepo_so = f'{prefix}/lib/libsysreo.so.h'
sysrepo_header = f'{prefix}/include/sysreo/version.h'
sysrepo_so = f'{prefix}/lib/libsysrepo.so.h'
sysrepo_header = f'{prefix}/include/sysrepo/version.h'
if (os.path.exists(sysrepo_so) and os.path.exists(sysrepo_header) and
execute(f"grep -F '#define SR_VERSION_MAJOR 7' '{sysrepo_header}'", raise_error=False) == 0):
log.info(f'sysrepo is already installed at {sysrepo_so}.')

View File

@ -84,7 +84,7 @@ public:
///
/// @param value the value obtained from the union node with ->asTerm().value()
///
/// @return the underylying type
/// @return the underlying type
static libyang::LeafBaseType getUnionType(libyang::Value const& value);
}; // YangReprItem

View File

@ -293,7 +293,7 @@ Translator::translateToYang(ConstElementPtr const& element,
} else if (element->getType() == Element::list) {
isc_throw(NotImplemented, "Translator::value(): list element");
} else if (element->getType() == Element::string) {
// If it's a string, get the variant wthout quotes.
// If it's a string, get the variant without quotes.
string_representation = element->stringValue();
} else {
// If it's not a string, also get the variant without quotes, but it's a different method.

View File

@ -303,7 +303,7 @@ public:
/// @brief Retrieves a child YANG data node identified by one name from the
/// given parent YANG container node and stores it in the specified storage
/// uner a different name.
/// under a different name.
///
/// Unlike @ref checkAndGetLeaf, the leaf is expected to be present.
///