summaryrefslogtreecommitdiffstats
path: root/src/bin/netconf/netconf_messages.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:15:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 12:15:43 +0000
commitf5f56e1a1c4d9e9496fcb9d81131066a964ccd23 (patch)
tree49e44c6f87febed37efb953ab5485aa49f6481a7 /src/bin/netconf/netconf_messages.cc
parentInitial commit. (diff)
downloadisc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.tar.xz
isc-kea-f5f56e1a1c4d9e9496fcb9d81131066a964ccd23.zip
Adding upstream version 2.4.1.upstream/2.4.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/bin/netconf/netconf_messages.cc')
-rw-r--r--src/bin/netconf/netconf_messages.cc91
1 files changed, 91 insertions, 0 deletions
diff --git a/src/bin/netconf/netconf_messages.cc b/src/bin/netconf/netconf_messages.cc
new file mode 100644
index 0000000..c1913ae
--- /dev/null
+++ b/src/bin/netconf/netconf_messages.cc
@@ -0,0 +1,91 @@
+// File created from ../../../src/bin/netconf/netconf_messages.mes
+
+#include <cstddef>
+#include <log/message_types.h>
+#include <log/message_initializer.h>
+
+namespace isc {
+namespace netconf {
+
+extern const isc::log::MessageID NETCONF_BOOT_UPDATE_COMPLETED = "NETCONF_BOOT_UPDATE_COMPLETED";
+extern const isc::log::MessageID NETCONF_CONFIG_CHANGED_DETAIL = "NETCONF_CONFIG_CHANGED_DETAIL";
+extern const isc::log::MessageID NETCONF_CONFIG_CHANGE_EVENT = "NETCONF_CONFIG_CHANGE_EVENT";
+extern const isc::log::MessageID NETCONF_CONFIG_CHECK_FAIL = "NETCONF_CONFIG_CHECK_FAIL";
+extern const isc::log::MessageID NETCONF_CONFIG_FAIL = "NETCONF_CONFIG_FAIL";
+extern const isc::log::MessageID NETCONF_CONFIG_SYNTAX_WARNING = "NETCONF_CONFIG_SYNTAX_WARNING";
+extern const isc::log::MessageID NETCONF_FAILED = "NETCONF_FAILED";
+extern const isc::log::MessageID NETCONF_GET_CONFIG = "NETCONF_GET_CONFIG";
+extern const isc::log::MessageID NETCONF_GET_CONFIG_FAILED = "NETCONF_GET_CONFIG_FAILED";
+extern const isc::log::MessageID NETCONF_GET_CONFIG_STARTED = "NETCONF_GET_CONFIG_STARTED";
+extern const isc::log::MessageID NETCONF_LOG_CHANGE_FAIL = "NETCONF_LOG_CHANGE_FAIL";
+extern const isc::log::MessageID NETCONF_MODULE_MISSING_ERR = "NETCONF_MODULE_MISSING_ERR";
+extern const isc::log::MessageID NETCONF_MODULE_MISSING_WARN = "NETCONF_MODULE_MISSING_WARN";
+extern const isc::log::MessageID NETCONF_MODULE_REVISION_ERR = "NETCONF_MODULE_REVISION_ERR";
+extern const isc::log::MessageID NETCONF_MODULE_REVISION_WARN = "NETCONF_MODULE_REVISION_WARN";
+extern const isc::log::MessageID NETCONF_NOTIFICATION_RECEIVED = "NETCONF_NOTIFICATION_RECEIVED";
+extern const isc::log::MessageID NETCONF_NOT_SUBSCRIBED_TO_NOTIFICATIONS = "NETCONF_NOT_SUBSCRIBED_TO_NOTIFICATIONS";
+extern const isc::log::MessageID NETCONF_RUN_EXIT = "NETCONF_RUN_EXIT";
+extern const isc::log::MessageID NETCONF_SET_CONFIG = "NETCONF_SET_CONFIG";
+extern const isc::log::MessageID NETCONF_SET_CONFIG_FAILED = "NETCONF_SET_CONFIG_FAILED";
+extern const isc::log::MessageID NETCONF_SET_CONFIG_STARTED = "NETCONF_SET_CONFIG_STARTED";
+extern const isc::log::MessageID NETCONF_STARTED = "NETCONF_STARTED";
+extern const isc::log::MessageID NETCONF_SUBSCRIBE_CONFIG = "NETCONF_SUBSCRIBE_CONFIG";
+extern const isc::log::MessageID NETCONF_SUBSCRIBE_CONFIG_FAILED = "NETCONF_SUBSCRIBE_CONFIG_FAILED";
+extern const isc::log::MessageID NETCONF_SUBSCRIBE_NOTIFICATIONS = "NETCONF_SUBSCRIBE_NOTIFICATIONS";
+extern const isc::log::MessageID NETCONF_UPDATE_CONFIG = "NETCONF_UPDATE_CONFIG";
+extern const isc::log::MessageID NETCONF_UPDATE_CONFIG_COMPLETED = "NETCONF_UPDATE_CONFIG_COMPLETED";
+extern const isc::log::MessageID NETCONF_UPDATE_CONFIG_FAILED = "NETCONF_UPDATE_CONFIG_FAILED";
+extern const isc::log::MessageID NETCONF_UPDATE_CONFIG_STARTED = "NETCONF_UPDATE_CONFIG_STARTED";
+extern const isc::log::MessageID NETCONF_VALIDATE_CONFIG = "NETCONF_VALIDATE_CONFIG";
+extern const isc::log::MessageID NETCONF_VALIDATE_CONFIG_COMPLETED = "NETCONF_VALIDATE_CONFIG_COMPLETED";
+extern const isc::log::MessageID NETCONF_VALIDATE_CONFIG_FAILED = "NETCONF_VALIDATE_CONFIG_FAILED";
+extern const isc::log::MessageID NETCONF_VALIDATE_CONFIG_REJECTED = "NETCONF_VALIDATE_CONFIG_REJECTED";
+extern const isc::log::MessageID NETCONF_VALIDATE_CONFIG_STARTED = "NETCONF_VALIDATE_CONFIG_STARTED";
+
+} // namespace netconf
+} // namespace isc
+
+namespace {
+
+const char* values[] = {
+ "NETCONF_BOOT_UPDATE_COMPLETED", "Boot-update configuration completed for server %1",
+ "NETCONF_CONFIG_CHANGED_DETAIL", "YANG configuration changed: %1",
+ "NETCONF_CONFIG_CHANGE_EVENT", "Received YANG configuration change %1 event",
+ "NETCONF_CONFIG_CHECK_FAIL", "NETCONF configuration check failed: %1",
+ "NETCONF_CONFIG_FAIL", "NETCONF configuration failed: %1",
+ "NETCONF_CONFIG_SYNTAX_WARNING", "NETCONF configuration syntax warning: %1",
+ "NETCONF_FAILED", "application experienced a fatal error: %1",
+ "NETCONF_GET_CONFIG", "got configuration from %1 server: %2",
+ "NETCONF_GET_CONFIG_FAILED", "getting configuration from %1 server failed: %2",
+ "NETCONF_GET_CONFIG_STARTED", "getting configuration from %1 server",
+ "NETCONF_LOG_CHANGE_FAIL", "NETCONF configuration change logging failed: %1",
+ "NETCONF_MODULE_MISSING_ERR", "Missing essential module %1 in sysrepo",
+ "NETCONF_MODULE_MISSING_WARN", "Missing module %1 in sysrepo",
+ "NETCONF_MODULE_REVISION_ERR", "Essential module %1 does NOT have the right revision: expected %2, got %3",
+ "NETCONF_MODULE_REVISION_WARN", "Module %1 does NOT have the right revision: expected %2, got %3",
+ "NETCONF_NOTIFICATION_RECEIVED", "Received notification of type %1 for module %1: %2",
+ "NETCONF_NOT_SUBSCRIBED_TO_NOTIFICATIONS", "subscribing to notifications for %1 server with %2 module failed: %3",
+ "NETCONF_RUN_EXIT", "application is exiting the event loop",
+ "NETCONF_SET_CONFIG", "set configuration to %1 server: %2",
+ "NETCONF_SET_CONFIG_FAILED", "setting configuration to %1 server failed: %2",
+ "NETCONF_SET_CONFIG_STARTED", "setting configuration to %1 server",
+ "NETCONF_STARTED", "kea-netconf (version %1) started",
+ "NETCONF_SUBSCRIBE_CONFIG", "subscribing configuration changes for %1 server with %2 module",
+ "NETCONF_SUBSCRIBE_CONFIG_FAILED", "subscribe configuration changes for %1 server with %2 module failed: %3",
+ "NETCONF_SUBSCRIBE_NOTIFICATIONS", "subscribing to notifications for %1 server with %2 module",
+ "NETCONF_UPDATE_CONFIG", "updating configuration with %1 server: %2",
+ "NETCONF_UPDATE_CONFIG_COMPLETED", "completed updating configuration for %1 server",
+ "NETCONF_UPDATE_CONFIG_FAILED", "updating configuration with %1 server: %2",
+ "NETCONF_UPDATE_CONFIG_STARTED", "started updating configuration for %1 server",
+ "NETCONF_VALIDATE_CONFIG", "validating configuration with %1 server: %2",
+ "NETCONF_VALIDATE_CONFIG_COMPLETED", "completed validating configuration for %1 server",
+ "NETCONF_VALIDATE_CONFIG_FAILED", "validating configuration with %1 server got an error: %2",
+ "NETCONF_VALIDATE_CONFIG_REJECTED", "validating configuration with %1 server was rejected: %2",
+ "NETCONF_VALIDATE_CONFIG_STARTED", "started validating configuration for %1 server",
+ NULL
+};
+
+const isc::log::MessageInitializer initializer(values);
+
+} // Anonymous namespace
+