|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
module ietf-netconf-monitoring {
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
namespace "urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring";
|
|
Packit |
8fb591 |
prefix "ncm";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
import ietf-yang-types { prefix yang; }
|
|
Packit |
8fb591 |
import ietf-inet-types { prefix inet; }
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
organization
|
|
Packit |
8fb591 |
"IETF NETCONF (Network Configuration) Working Group";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
contact
|
|
Packit |
8fb591 |
"WG Web: <http://tools.ietf.org/wg/netconf/>
|
|
Packit |
8fb591 |
WG List: <mailto:netconf@ietf.org>
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
WG Chair: Mehmet Ersue
|
|
Packit |
8fb591 |
<mailto:mehmet.ersue@nsn.com>
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
WG Chair: Bert Wijnen
|
|
Packit |
8fb591 |
<mailto:bertietf@bwijnen.net>
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Editor: Mark Scott
|
|
Packit |
8fb591 |
<mailto:mark.scott@ericsson.com>
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Editor: Martin Bjorklund
|
|
Packit |
8fb591 |
<mailto:mbj@tail-f.com>";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF Monitoring Module.
|
|
Packit |
8fb591 |
All elements in this module are read-only.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Copyright (c) 2010 IETF Trust and the persons identified as
|
|
Packit |
8fb591 |
authors of the code. All rights reserved.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Redistribution and use in source and binary forms, with or
|
|
Packit |
8fb591 |
without modification, is permitted pursuant to, and subject
|
|
Packit |
8fb591 |
to the license terms contained in, the Simplified BSD
|
|
Packit |
8fb591 |
License set forth in Section 4.c of the IETF Trust's
|
|
Packit |
8fb591 |
Legal Provisions Relating to IETF Documents
|
|
Packit |
8fb591 |
(http://trustee.ietf.org/license-info).
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
This version of this YANG module is part of RFC 6022; see
|
|
Packit |
8fb591 |
the RFC itself for full legal notices.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
revision 2010-10-04 {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Initial revision.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 6022: YANG Module for NETCONF Monitoring";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
typedef netconf-datastore-type {
|
|
Packit |
8fb591 |
type enumeration {
|
|
Packit |
8fb591 |
enum running;
|
|
Packit |
8fb591 |
enum candidate;
|
|
Packit |
8fb591 |
enum startup;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Enumeration of possible NETCONF datastore types.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4741: NETCONF Configuration Protocol";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity transport {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Base identity for NETCONF transport types.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity netconf-ssh {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF over Secure Shell (SSH).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4742: Using the NETCONF Configuration Protocol
|
|
Packit |
8fb591 |
over Secure SHell (SSH)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity netconf-soap-over-beep {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF over Simple Object Access Protocol (SOAP) over
|
|
Packit |
8fb591 |
Blocks Extensible Exchange Protocol (BEEP).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4743: Using NETCONF over the Simple Object
|
|
Packit |
8fb591 |
Access Protocol (SOAP)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity netconf-soap-over-https {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF over Simple Object Access Protocol (SOAP)
|
|
Packit |
8fb591 |
over Hypertext Transfer Protocol Secure (HTTPS).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4743: Using NETCONF over the Simple Object
|
|
Packit |
8fb591 |
Access Protocol (SOAP)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity netconf-beep {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF over Blocks Extensible Exchange Protocol (BEEP).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4744: Using the NETCONF Protocol over the
|
|
Packit |
8fb591 |
Blocks Extensible Exchange Protocol (BEEP)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity netconf-tls {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"NETCONF over Transport Layer Security (TLS).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 5539: NETCONF over Transport Layer Security (TLS)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity schema-format {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Base identity for data model schema languages.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity xsd {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"W3C XML Schema Definition.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"W3C REC REC-xmlschema-1-20041028:
|
|
Packit |
8fb591 |
XML Schema Part 1: Structures";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity yang {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The YANG data modeling language for NETCONF.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 6020: YANG - A Data Modeling Language for the
|
|
Packit |
8fb591 |
Network Configuration Protocol (NETCONF)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity yin {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The YIN syntax for YANG.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 6020: YANG - A Data Modeling Language for the
|
|
Packit |
8fb591 |
Network Configuration Protocol (NETCONF)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity rng {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Regular Language for XML Next Generation (RELAX NG).";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"ISO/IEC 19757-2:2008: RELAX NG";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
identity rnc {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Relax NG Compact Syntax";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"ISO/IEC 19757-2:2008: RELAX NG";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
grouping common-counters {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Counters that exist both per session, and also globally,
|
|
Packit |
8fb591 |
accumulated from all sessions.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf in-rpcs {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of correct <rpc> messages received.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf in-bad-rpcs {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of messages received when an <rpc> message was expected,
|
|
Packit |
8fb591 |
that were not correct <rpc> messages. This includes XML parse
|
|
Packit |
8fb591 |
errors and errors on the rpc layer.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf out-rpc-errors {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of <rpc-reply> messages sent that contained an
|
|
Packit |
8fb591 |
<rpc-error> element.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf out-notifications {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of <notification> messages sent.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container netconf-state {
|
|
Packit |
8fb591 |
config false;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The netconf-state container is the root of the monitoring
|
|
Packit |
8fb591 |
data model.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container capabilities {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Contains the list of NETCONF capabilities supported by the
|
|
Packit |
8fb591 |
server.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf-list capability {
|
|
Packit |
8fb591 |
type inet:uri;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"List of NETCONF capabilities supported by the server.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container datastores {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Contains the list of NETCONF configuration datastores.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
list datastore {
|
|
Packit |
8fb591 |
key name;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"List of NETCONF configuration datastores supported by
|
|
Packit |
8fb591 |
the NETCONF server and related information.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf name {
|
|
Packit |
8fb591 |
type netconf-datastore-type;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Name of the datastore associated with this list entry.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
container locks {
|
|
Packit |
8fb591 |
presence
|
|
Packit |
8fb591 |
"This container is present only if the datastore
|
|
Packit |
8fb591 |
is locked.";
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The NETCONF <lock> and <partial-lock> operations allow
|
|
Packit |
8fb591 |
a client to lock specific resources in a datastore. The
|
|
Packit |
8fb591 |
NETCONF server will prevent changes to the locked
|
|
Packit |
8fb591 |
resources by all sessions except the one that acquired
|
|
Packit |
8fb591 |
the lock(s).
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Monitoring information is provided for each datastore
|
|
Packit |
8fb591 |
entry including details such as the session that acquired
|
|
Packit |
8fb591 |
the lock, the type of lock (global or partial) and the
|
|
Packit |
8fb591 |
list of locked resources. Multiple locks per datastore
|
|
Packit |
8fb591 |
are supported.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
grouping lock-info {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Lock related parameters, common to both global and
|
|
Packit |
8fb591 |
partial locks.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf locked-by-session {
|
|
Packit |
8fb591 |
type uint32;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The session ID of the session that has locked
|
|
Packit |
8fb591 |
this resource. Both a global lock and a partial
|
|
Packit |
8fb591 |
lock MUST contain the NETCONF session-id.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
If the lock is held by a session that is not managed
|
|
Packit |
8fb591 |
by the NETCONF server (e.g., a CLI session), a session
|
|
Packit |
8fb591 |
id of 0 (zero) is reported.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4741: NETCONF Configuration Protocol";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf locked-time {
|
|
Packit |
8fb591 |
type yang:date-and-time;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The date and time of when the resource was
|
|
Packit |
8fb591 |
locked.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
choice lock-type {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Indicates if a global lock or a set of partial locks
|
|
Packit |
8fb591 |
are set.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container global-lock {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Present if the global lock is set.";
|
|
Packit |
8fb591 |
uses lock-info;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
list partial-lock {
|
|
Packit |
8fb591 |
key lock-id;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"List of partial locks.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 5717: Partial Lock Remote Procedure Call (RPC) for
|
|
Packit |
8fb591 |
NETCONF";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf lock-id {
|
|
Packit |
8fb591 |
type uint32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"This is the lock id returned in the <partial-lock>
|
|
Packit |
8fb591 |
response.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
uses lock-info;
|
|
Packit |
8fb591 |
leaf-list select {
|
|
Packit |
8fb591 |
type yang:xpath1.0;
|
|
Packit |
8fb591 |
min-elements 1;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The xpath expression that was used to request
|
|
Packit |
8fb591 |
the lock. The select expression indicates the
|
|
Packit |
8fb591 |
original intended scope of the lock.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf-list locked-node {
|
|
Packit |
8fb591 |
type instance-identifier;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The list of instance-identifiers (i.e., the
|
|
Packit |
8fb591 |
locked nodes).
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
The scope of the partial lock is defined by the list
|
|
Packit |
8fb591 |
of locked nodes.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container schemas {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Contains the list of data model schemas supported by the
|
|
Packit |
8fb591 |
server.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
list schema {
|
|
Packit |
8fb591 |
key "identifier version format";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"List of data model schemas supported by the server.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf identifier {
|
|
Packit |
8fb591 |
type string;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Identifier to uniquely reference the schema. The
|
|
Packit |
8fb591 |
identifier is used in the <get-schema> operation and may
|
|
Packit |
8fb591 |
be used for other purposes such as file retrieval.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
For modeling languages that support or require a data
|
|
Packit |
8fb591 |
model name (e.g., YANG module name) the identifier MUST
|
|
Packit |
8fb591 |
match that name. For YANG data models, the identifier is
|
|
Packit |
8fb591 |
the name of the module or submodule. In other cases, an
|
|
Packit |
8fb591 |
identifier such as a filename MAY be used instead.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf version {
|
|
Packit |
8fb591 |
type string;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Version of the schema supported. Multiple versions MAY be
|
|
Packit |
8fb591 |
supported simultaneously by a NETCONF server. Each
|
|
Packit |
8fb591 |
version MUST be reported individually in the schema list,
|
|
Packit |
8fb591 |
i.e., with same identifier, possibly different location,
|
|
Packit |
8fb591 |
but different version.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
For YANG data models, version is the value of the most
|
|
Packit |
8fb591 |
recent YANG 'revision' statement in the module or
|
|
Packit |
8fb591 |
submodule, or the empty string if no 'revision' statement
|
|
Packit |
8fb591 |
is present.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf format {
|
|
Packit |
8fb591 |
type identityref {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The data modeling language the schema is written
|
|
Packit |
8fb591 |
in (currently xsd, yang, yin, rng, or rnc).
|
|
Packit |
8fb591 |
For YANG data models, 'yang' format MUST be supported and
|
|
Packit |
8fb591 |
'yin' format MAY also be provided.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf namespace {
|
|
Packit |
8fb591 |
type inet:uri;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The XML namespace defined by the data model.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
For YANG data models, this is the module's namespace.
|
|
Packit |
8fb591 |
If the list entry describes a submodule, this field
|
|
Packit |
8fb591 |
contains the namespace of the module to which the
|
|
Packit |
8fb591 |
submodule belongs.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf-list location {
|
|
Packit |
8fb591 |
type union {
|
|
Packit |
8fb591 |
type enumeration {
|
|
Packit |
8fb591 |
enum "NETCONF";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
type inet:uri;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"One or more locations from which the schema can be
|
|
Packit |
8fb591 |
retrieved. This list SHOULD contain at least one
|
|
Packit |
8fb591 |
entry per schema.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
A schema entry may be located on a remote file system
|
|
Packit |
8fb591 |
(e.g., reference to file system for ftp retrieval) or
|
|
Packit |
8fb591 |
retrieved directly from a server supporting the
|
|
Packit |
8fb591 |
<get-schema> operation (denoted by the value 'NETCONF').";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container sessions {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The sessions container includes session-specific data for
|
|
Packit |
8fb591 |
NETCONF management sessions. The session list MUST include
|
|
Packit |
8fb591 |
all currently active NETCONF sessions.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
list session {
|
|
Packit |
8fb591 |
key session-id;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"All NETCONF sessions managed by the NETCONF server
|
|
Packit |
8fb591 |
MUST be reported in this list.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf session-id {
|
|
Packit |
8fb591 |
type uint32 {
|
|
Packit |
8fb591 |
range "1..max";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Unique identifier for the session. This value is the
|
|
Packit |
8fb591 |
NETCONF session identifier, as defined in RFC 4741.";
|
|
Packit |
8fb591 |
reference
|
|
Packit |
8fb591 |
"RFC 4741: NETCONF Configuration Protocol";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf transport {
|
|
Packit |
8fb591 |
type identityref {
|
|
Packit |
8fb591 |
base transport;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Identifies the transport for each session, e.g.,
|
|
Packit |
8fb591 |
'netconf-ssh', 'netconf-soap', etc.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf username {
|
|
Packit |
8fb591 |
type string;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The username is the client identity that was authenticated
|
|
Packit |
8fb591 |
by the NETCONF transport protocol. The algorithm used to
|
|
Packit |
8fb591 |
derive the username is NETCONF transport protocol specific
|
|
Packit |
8fb591 |
and in addition specific to the authentication mechanism
|
|
Packit |
8fb591 |
used by the NETCONF transport protocol.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf source-host {
|
|
Packit |
8fb591 |
type inet:host;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Host identifier of the NETCONF client. The value
|
|
Packit |
8fb591 |
returned is implementation specific (e.g., hostname,
|
|
Packit |
8fb591 |
IPv4 address, IPv6 address)";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf login-time {
|
|
Packit |
8fb591 |
type yang:date-and-time;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Time at the server at which the session was established.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
uses common-counters {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Per-session counters. Zero based with following reset
|
|
Packit |
8fb591 |
behaviour:
|
|
Packit |
8fb591 |
- at start of a session
|
|
Packit |
8fb591 |
- when max value is reached";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
container statistics {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Statistical data pertaining to the NETCONF server.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
leaf netconf-start-time {
|
|
Packit |
8fb591 |
type yang:date-and-time;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Date and time at which the management subsystem was
|
|
Packit |
8fb591 |
started.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf in-bad-hellos {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of sessions silently dropped because an
|
|
Packit |
8fb591 |
invalid <hello> message was received. This includes <hello>
|
|
Packit |
8fb591 |
messages with a 'session-id' attribute, bad namespace, and
|
|
Packit |
8fb591 |
bad capability declarations.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf in-sessions {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of sessions started. This counter is incremented
|
|
Packit |
8fb591 |
when a <hello> message with a <session-id> is sent.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
'in-sessions' - 'in-bad-hellos' =
|
|
Packit |
8fb591 |
'number of correctly started netconf sessions'";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf dropped-sessions {
|
|
Packit |
8fb591 |
type yang:zero-based-counter32;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Number of sessions that were abnormally terminated, e.g.,
|
|
Packit |
8fb591 |
due to idle timeout or transport close. This counter is not
|
|
Packit |
8fb591 |
incremented when a session is properly closed by a
|
|
Packit |
8fb591 |
<close-session> operation, or killed by a <kill-session>
|
|
Packit |
8fb591 |
operation.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
uses common-counters {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Global counters, accumulated from all sessions.
|
|
Packit |
8fb591 |
Zero based with following reset behaviour:
|
|
Packit |
8fb591 |
- re-initialization of NETCONF server
|
|
Packit |
8fb591 |
- when max value is reached";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
rpc get-schema {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"This operation is used to retrieve a schema from the
|
|
Packit |
8fb591 |
NETCONF server.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Positive Response:
|
|
Packit |
8fb591 |
The NETCONF server returns the requested schema.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
Negative Response:
|
|
Packit |
8fb591 |
If requested schema does not exist, the <error-tag> is
|
|
Packit |
8fb591 |
'invalid-value'.
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
If more than one schema matches the requested parameters, the
|
|
Packit |
8fb591 |
<error-tag> is 'operation-failed', and <error-app-tag> is
|
|
Packit |
8fb591 |
'data-not-unique'.";
|
|
Packit |
8fb591 |
|
|
Packit |
8fb591 |
input {
|
|
Packit |
8fb591 |
leaf identifier {
|
|
Packit |
8fb591 |
type string;
|
|
Packit |
8fb591 |
mandatory true;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Identifier for the schema list entry.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf version {
|
|
Packit |
8fb591 |
type string;
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Version of the schema requested. If this parameter is not
|
|
Packit |
8fb591 |
present, and more than one version of the schema exists on
|
|
Packit |
8fb591 |
the server, a 'data-not-unique' error is returned, as
|
|
Packit |
8fb591 |
described above.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
leaf format {
|
|
Packit |
8fb591 |
type identityref {
|
|
Packit |
8fb591 |
base schema-format;
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"The data modeling language of the schema. If this
|
|
Packit |
8fb591 |
parameter is not present, and more than one formats of
|
|
Packit |
8fb591 |
the schema exists on the server, a 'data-not-unique' error
|
|
Packit |
8fb591 |
is returned, as described above.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
output {
|
|
Packit |
8fb591 |
anyxml data {
|
|
Packit |
8fb591 |
description
|
|
Packit |
8fb591 |
"Contains the schema content.";
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|
|
Packit |
8fb591 |
}
|