module ietf-syslog-types {
namespace "urn:ietf:params:xml:ns:yang:ietf-syslog-types";
prefix syslogtypes;
organization "IETF NETMOD (NETCONF Data Modeling Language) Working
Group";
contact
"WG Web:
WG List:
WG Chair: Lou Berger
WG Chair: Kent Watsen
Editor: Kiran Agrahara Sreenivasa
Editor: Clyde Wildes
";
description
"This module contains a collection of YANG type definitions for
SYSLOG.
Copyright (c) 2016 IETF Trust and the persons identified as
authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, is permitted pursuant to, and subject to
the license terms contained in, the Simplified BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(http://trustee.ietf.org/license-info).
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'MAY', and
'OPTIONAL' in the module text are to be interpreted as described
in RFC 2119 (http://tools.ietf.org/html/rfc2119).
This version of this YANG module is part of RFC XXXX
(http://tools.ietf.org/html/rfcXXXX); see the RFC itself for
full legal notices.";
reference
"RFC 5424: The Syslog Protocol";
revision 2016-10-30 {
description
"Initial Revision";
reference
"RFC XXXX: SYSLOG YANG Model";
}
typedef severity {
type enumeration {
enum "emergency" {
value 0;
description
"The severity level 'Emergency' indicating that the system
is unusable.";
}
enum "alert" {
value 1;
description
"The severity level 'Alert' indicating that an action must be
taken immediately.";
}
enum "critical" {
value 2;
description
"The severity level 'Critical' indicating a critical condition.";
}
enum "error" {
value 3;
description
"The severity level 'Error' indicating an error condition.";
}
enum "warning" {
value 4;
description
"The severity level 'Warning' indicating a warning condition.";
}
enum "notice" {
value 5;
description
"The severity level 'Notice' indicating a normal but significant
condition.";
}
enum "info" {
value 6;
description
"The severity level 'Info' indicating an informational message.";
}
enum "debug" {
value 7;
description
"The severity level 'Debug' indicating a debug-level message.";
}
}
description
"The definitions for Syslog message severity as per RFC 5424.";
}
identity syslog-facility {
description
"This identity is used as a base for all syslog facilities as
per RFC 5424.";
}
identity kern {
base syslog-facility;
description
"The facility for kernel messages (0) as defined in RFC 5424.";
}
identity user {
base syslog-facility;
description
"The facility for user-level messages (1) as defined in RFC 5424.";
}
identity mail {
base syslog-facility;
description
"The facility for the mail system (2) as defined in RFC 5424.";
}
identity daemon {
base syslog-facility;
description
"The facility for the system daemons (3) as defined in RFC 5424.";
}
identity auth {
base syslog-facility;
description
"The facility for security/authorization messages (4) as defined
in RFC 5424.";
}
identity syslog {
base syslog-facility;
description
"The facility for messages generated internally by syslogd
facility (5) as defined in RFC 5424.";
}
identity lpr {
base syslog-facility;
description
"The facility for the line printer subsystem (6) as defined in
RFC 5424.";
}
identity news {
base syslog-facility;
description
"The facility for the network news subsystem (7) as defined in
RFC 5424.";
}
identity uucp {
base syslog-facility;
description
"The facility for the UUCP subsystem (8) as defined in RFC 5424.";
}
identity cron {
base syslog-facility;
description
"The facility for the clock daemon (9) as defined in RFC 5424.";
}
identity authpriv {
base syslog-facility;
description
"The facility for privileged security/authorization messages (10)
as defined in RFC 5424.";
}
identity ftp {
base syslog-facility;
description
"The facility for the FTP daemon (11) as defined in RFC 5424.";
}
identity ntp {
base syslog-facility;
description
"The facility for the NTP subsystem (12) as defined in RFC 5424.";
}
identity audit {
base syslog-facility;
description
"The facility for log audit messages (13) as defined in RFC 5424.";
}
identity console {
base syslog-facility;
description
"The facility for log alert messages (14) as defined in RFC 5424.";
}
identity cron2 {
base syslog-facility;
description
"The facility for the second clock daemon (15) as defined in
RFC 5424.";
}
identity local0 {
base syslog-facility;
description
"The facility for local use 0 messages (16) as defined in
RFC 5424.";
}
identity local1 {
base syslog-facility;
description
"The facility for local use 1 messages (17) as defined in
RFC 5424.";
}
identity local2 {
base syslog-facility;
description
"The facility for local use 2 messages (18) as defined in
RFC 5424.";
}
identity local3 {
base syslog-facility;
description
"The facility for local use 3 messages (19) as defined in
RFC 5424.";
}
identity local4 {
base syslog-facility;
description
"The facility for local use 4 messages (20) as defined in
RFC 5424.";
}
identity local5 {
base syslog-facility;
description
"The facility for local use 5 messages (21) as defined in
RFC 5424.";
}
identity local6 {
base syslog-facility;
description
"The facility for local use 6 messages (22) as defined in
RFC 5424.";
}
identity local7 {
base syslog-facility;
description
"The facility for local use 7 messages (23) as defined in
RFC 5424.";
}
}