This module defines configuration and operational state data for common logging facilities on network systems.
Version: 2023-07-20
module openconfig-system-logging { yang-version 1; namespace "http://openconfig.net/yang/system/logging"; prefix oc-log; import openconfig-extensions { prefix oc-ext; } import openconfig-inet-types { prefix oc-inet; } import openconfig-network-instance { prefix oc-ni; } organization "OpenConfig working group"; contact "OpenConfig working group www.openconfig.net"; description "This module defines configuration and operational state data for common logging facilities on network systems."; revision "2023-07-20" { description "adding VTY and local files as logging destinations"; reference "0.6.0"; } revision "2023-05-04" { description "removing LOG_DESTINATION_TYPE identities"; reference "0.5.0"; } revision "2022-12-29" { description "Add network-instance for remote logging servers"; reference "0.4.1"; } revision "2018-11-21" { description "Add OpenConfig module metadata extensions."; reference "0.3.1"; } revision "2017-09-18" { description "Updated to use OpenConfig types modules"; reference "0.3.0"; } revision "2017-07-06" { description "Move to oc-inet types, add IETF attribution, add RADIUS counters, changed password leaf names to indicate hashed"; reference "0.2.0"; } revision "2017-01-29" { description "Initial public release"; reference "0.1.0"; } oc-ext:openconfig-version "0.6.0"; oc-ext:regexp-posix; oc-ext:catalog-organization "openconfig"; oc-ext:origin "openconfig"; identity SYSLOG_FACILITY { description "Base identity for Syslog message facilities."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity ALL { base SYSLOG_FACILITY; description "All supported facilities"; } identity KERNEL { base SYSLOG_FACILITY; description "The facility for kernel messages"; reference "IETF RFC 5424 - The Syslog Protocol"; } identity USER { base SYSLOG_FACILITY; description "The facility for user-level messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity MAIL { base SYSLOG_FACILITY; description "The facility for the mail system."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity SYSTEM_DAEMON { base SYSLOG_FACILITY; description "The facility for the system daemons."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity AUTH { base SYSLOG_FACILITY; description "The facility for security/authorization messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity SYSLOG { base SYSLOG_FACILITY; description "The facility for messages generated internally by syslogd facility."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity AUTHPRIV { base SYSLOG_FACILITY; description "The facility for privileged security/authorization messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity NTP { base SYSLOG_FACILITY; description "The facility for the NTP subsystem."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity AUDIT { base SYSLOG_FACILITY; description "The facility for log audit messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity CONSOLE { base SYSLOG_FACILITY; description "The facility for log alert messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL0 { base SYSLOG_FACILITY; description "The facility for local use 0 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL1 { base SYSLOG_FACILITY; description "The facility for local use 1 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL2 { base SYSLOG_FACILITY; description "The facility for local use 2 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL3 { base SYSLOG_FACILITY; description "The facility for local use 3 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL4 { base SYSLOG_FACILITY; description "The facility for local use 4 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL5 { base SYSLOG_FACILITY; description "The facility for local use 5 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL6 { base SYSLOG_FACILITY; description "The facility for local use 6 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } identity LOCAL7 { base SYSLOG_FACILITY; description "The facility for local use 7 messages."; reference "IETF RFC 5424 - The Syslog Protocol"; } typedef syslog-severity { type enumeration { enum "EMERGENCY" { value 0; description "Emergency: system is unusable (0)"; } enum "ALERT" { value 1; description "Alert: action must be taken immediately (1)"; } enum "CRITICAL" { value 2; description "Critical: critical conditions (2)"; } enum "ERROR" { value 3; description "Error: error conditions (3)"; } enum "WARNING" { value 4; description "Warning: warning conditions (4)"; } enum "NOTICE" { value 5; description "Notice: normal but significant condition(5)"; } enum "INFORMATIONAL" { value 6; description "Informational: informational messages (6)"; } enum "DEBUG" { value 7; description "Debug: debug-level messages (7)"; } } description "Syslog message severities"; reference "IETF RFC 5424 - The Syslog Protocol"; } } // module openconfig-system-logging
© 2023 YumaWorks, Inc. All rights reserved.