draft-ietf-netmod-syslog-model-02.txt   draft-ietf-netmod-syslog-model-03.txt 
NETMOD WG Clyde Wildes NETMOD WG Clyde Wildes
Internet-Draft Cisco Systems Internet-Draft Cisco Systems
Intended status: Informational Agrahara Kiran Koushik Intended status: Informational Agrahara Kiran Koushik
Expires: Sep 05, 2015 Brocade Communication Systems Expires: Sep 09, 2015 Brocade Communication Systems
Mar 05, 2015 Mar 09, 2015
SYSLOG YANG model SYSLOG YANG model
draft-ietf-netmod-syslog-model-02 draft-ietf-netmod-syslog-model-03
Abstract Abstract
This document describes a data model for Syslog This document describes a data model for Syslog
protocol which is used to convey event notification messages. protocol which is used to convey event notification messages.
Status of This Memo Status of This Memo
This Internet-Draft is submitted in full conformance with the This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
skipping to change at page 6, line 9 skipping to change at page 6, line 9
| +--rw severity? syslogtypes:severity | +--rw severity? syslogtypes:severity
+--rw logging-advanced-level-processing {selector-advanced-level-processing-config}? +--rw logging-advanced-level-processing {selector-advanced-level-processing-config}?
| +--rw select-message-severity? enumeration | +--rw select-message-severity? enumeration
+--rw logging-match-processing {selector-match-processing-config}? +--rw logging-match-processing {selector-match-processing-config}?
+--rw pattern-match? string +--rw pattern-match? string
4. SYSLOG YANG Models 4. SYSLOG YANG Models
4.1. SYSLOG-TYPES module 4.1. SYSLOG-TYPES module
<CODE BEGINS> file "ietf-syslog-types.yang"
module ietf-syslog-types { module ietf-syslog-types {
namespace "urn:ietf:params:xml:ns:yang:ietf-syslog-types"; namespace "urn:ietf:params:xml:ns:yang:ietf-syslog-types";
prefix syslogtypes; prefix syslogtypes;
organization "IETF NETMOD (NETCONF Data Modeling Language) Working organization "IETF NETMOD (NETCONF Data Modeling Language) Working
Group"; Group";
contact contact
"WG Web: <http://tools.ietf.org/wg/netmod/> "WG Web: <http://tools.ietf.org/wg/netmod/>
WG List: <mailto:netmod@ietf.org> WG List: <mailto:netmod@ietf.org>
skipping to change at page 8, line 18 skipping to change at page 8, line 18
} }
identity mail { identity mail {
base syslog-facility; base syslog-facility;
description description
"The facility for the mail system as defined in RFC 5424."; "The facility for the mail system as defined in RFC 5424.";
} }
identity daemon { identity daemon {
base syslog-facility; base syslog-facility;
}
description description
"The facility for the system daemons as defined in RFC 5424."; "The facility for the system daemons as defined in RFC 5424.";
} }
identity auth { identity auth {
base syslog-facility; base syslog-facility;
description description
"The facility for security/authorization messages as defined "The facility for security/authorization messages as defined
in RFC 5424."; in RFC 5424.";
} }
skipping to change at page 10, line 4 skipping to change at page 9, line 74
RFC 5424."; RFC 5424.";
} }
identity local7 { identity local7 {
base syslog-facility; base syslog-facility;
description description
"The facility for local use 7 messages as defined in "The facility for local use 7 messages as defined in
RFC 5424."; RFC 5424.";
} }
} }
<CODE ENDS>
4.2. SYSLOG module 4.2. SYSLOG module
<CODE BEGINS> file "ietf-syslog.yang"
module ietf-syslog { module ietf-syslog {
namespace "urn:ietf:params:xml:ns:yang:ietf-syslog"; namespace "urn:ietf:params:xml:ns:yang:ietf-syslog";
prefix syslog; prefix syslog;
import ietf-inet-types { import ietf-inet-types {
prefix inet; prefix inet;
} }
import ietf-interfaces { import ietf-interfaces {
prefix if; prefix if;
skipping to change at page 18, line 20 skipping to change at page 18, line 20
is to receive log messages."; is to receive log messages.";
} }
uses syslog-selector; uses syslog-selector;
} }
} }
} }
} }
} }
} }
<CODE ENDS>
4.3. A SYSLOG Example 4.3. A SYSLOG Example
Requirement: Requirement:
Enable global logging of two facilities: Enable global logging of two facilities:
kern - severity critical(1) kern - severity critical(1)
auth - severity error(3) auth - severity error(3)
Enable console logging of syslogs of severity Enable console logging of syslogs of severity
critical(1) critical(1)
 End of changes. 7 change blocks. 
4 lines changed or deleted 11 lines changed or added

This html diff was produced by rfcdiff 1.42. The latest version is available from http://tools.ietf.org/tools/rfcdiff/