mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-29 04:57:52 +00:00
[#2601] fix typos in NETCONF code
This commit is contained in:
parent
13142fea93
commit
582e84a83e
@ -1114,7 +1114,7 @@ are done at the same configuration state and no change happens between exporting
|
|||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Sysrepo v0 does not support import/export of all YANG modules. This capability was added in
|
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
|
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.
|
modules. The command is the same except it has the module name added to it at the end.
|
||||||
|
|
||||||
|
@ -1106,8 +1106,8 @@ def _install_libyang_from_sources(ignore_errors = False):
|
|||||||
def _install_sysrepo_from_sources(ignore_errors = False):
|
def _install_sysrepo_from_sources(ignore_errors = False):
|
||||||
"""Install sysrepo from sources."""
|
"""Install sysrepo from sources."""
|
||||||
for prefix in ['/usr', '/usr/local']:
|
for prefix in ['/usr', '/usr/local']:
|
||||||
sysrepo_so = f'{prefix}/lib/libsysreo.so.h'
|
sysrepo_so = f'{prefix}/lib/libsysrepo.so.h'
|
||||||
sysrepo_header = f'{prefix}/include/sysreo/version.h'
|
sysrepo_header = f'{prefix}/include/sysrepo/version.h'
|
||||||
if (os.path.exists(sysrepo_so) and os.path.exists(sysrepo_header) and
|
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):
|
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}.')
|
log.info(f'sysrepo is already installed at {sysrepo_so}.')
|
||||||
|
@ -84,7 +84,7 @@ public:
|
|||||||
///
|
///
|
||||||
/// @param value the value obtained from the union node with ->asTerm().value()
|
/// @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);
|
static libyang::LeafBaseType getUnionType(libyang::Value const& value);
|
||||||
}; // YangReprItem
|
}; // YangReprItem
|
||||||
|
|
||||||
|
@ -293,7 +293,7 @@ Translator::translateToYang(ConstElementPtr const& element,
|
|||||||
} else if (element->getType() == Element::list) {
|
} else if (element->getType() == Element::list) {
|
||||||
isc_throw(NotImplemented, "Translator::value(): list element");
|
isc_throw(NotImplemented, "Translator::value(): list element");
|
||||||
} else if (element->getType() == Element::string) {
|
} 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();
|
string_representation = element->stringValue();
|
||||||
} else {
|
} else {
|
||||||
// If it's not a string, also get the variant without quotes, but it's a different method.
|
// If it's not a string, also get the variant without quotes, but it's a different method.
|
||||||
|
@ -303,7 +303,7 @@ public:
|
|||||||
|
|
||||||
/// @brief Retrieves a child YANG data node identified by one name from the
|
/// @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
|
/// 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.
|
/// Unlike @ref checkAndGetLeaf, the leaf is expected to be present.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user