1 // vi: set smarttab et sw=4 tabstop=4:
2 module pcep-session-stats {
4 namespace "urn:opendaylight:params:xml:ns:yang:controller:pcep:stats";
7 organization "Cisco Systems, Inc.";
9 contact "Milos Fabian <milfabia@cisco.com>";
12 "This module contains the base YANG definitions for
13 PCEP session statistics.
15 Copyright (c)2014 Cisco Systems, Inc. All rights reserved.;
17 This program and the accompanying materials are made available
18 under the terms of the Eclipse Public License v1.0 which
19 accompanies this distribution, and is available at
20 http://www.eclipse.org/legal/epl-v10.html";
22 revision "2014-10-06" {
28 description "PCEP Error-type/value.";
39 grouping preferences {
41 description "Advertised keep-alive value.";
47 description "Advertised deadtimer value.";
53 description "Peer's IP address.";
59 description "Peer's session identifier.";
65 grouping pcep-session-state {
66 description "PCEP session statistics.";
69 description "The statistics of PCEP received/sent messages from the PCE point of view.";
70 leaf received-msg-count {
71 description "Total number of received PCEP messages.";
76 description "Total number of sent PCEP messages.";
80 leaf last-sent-msg-timestamp {
81 description "The timestamp of last sent message.";
85 leaf unknown-msg-received {
86 description "The number of received unknown messages.";
90 container error-messages {
91 description "The message statistics of received/sent PCErr messages.";
92 leaf received-error-msg-count {
93 description "Total number of received PCErr messages.";
97 leaf sent-error-msg-count {
98 description "Total number of sent PCErr messages.";
102 container last-received-error {
103 description "Type/value tuple of last received error.";
107 container last-sent-error {
108 description "Type/value tuple of last sent error.";
114 container local-pref {
115 description "The local (PCE) preferences.";
119 container peer-pref {
120 description "The remote peer (PCC) preferences.";