2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
12 namespace "urn:opendaylight:groupbasedpolicy:statistics";
13 prefix "gbp-statistics";
17 revision-date 2014-04-21;
21 revision-date 2014-04-21;
23 import ietf-inet-types {
25 revision-date 2010-09-24;
27 import ietf-yang-types {
29 revision-date 2010-09-24;
33 "This module defines gbp statistics model.";
35 revision "2015-12-15" {
40 grouping statistic-records {
41 container stat-records {
42 //////////////////////
44 //specific statistic//
45 //////////////////////
46 list ep-to-ep-statistic {
47 key "src-mac-address src-l2c dst-mac-address dst-l2c";
51 leaf src-mac-address {
52 type yang:mac-address;
55 type gbp-common:l2-bridge-domain-id;
58 type gbp-common:tenant-id;
63 "Date and time of record creation in milliseconds
64 counting from 1.1.1970 00:00:00 UTC (= 0)";
69 leaf dst-mac-address {
70 type yang:mac-address;
73 type gbp-common:l2-bridge-domain-id;
76 type gbp-common:tenant-id;
78 //////////////////////
80 //specific statistic//
81 //////////////////////
82 list ep-epg-to-ep-epg-statistic {
83 key "src-epg dst-epg";
85 type gbp-common:endpoint-group-id;
88 type gbp-common:endpoint-group-id;
90 list matched-rule-statistic {
91 key "contract subject matched-rule";
93 type gbp-common:contract-id;
96 type gbp-common:subject-name;
99 type gbp-common:rule-name;
101 leaf-list classifier {
102 type gbp-common:classifier-name;
105 type gbp-common:action-name;