2 * Copyright (c) 2015 Brocade Communications 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
8 module neutron-metering {
12 namespace "urn:opendaylight:neutron-metering";
14 prefix neutron-metering;
16 import ietf-yang-types { prefix "yang"; }
17 // It requires rfc6991 (revision 2013-07-15), but odl don't have it, so this patch verify build will fail.
18 import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
19 import neutron-attrs { prefix "attrs"; }
21 organization "OpenDaylight Neutron Group";
23 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
25 description "This YANG module defines metering attributes that are used by Openstack
26 Juno House Neutron YANG modules.";
28 revision "2014-10-02" {
30 "Initial version of metering attributes used by OpenStack Ice House Neutron
34 grouping metering-label-attrs {
35 description "OpenStack Layer3 Metering label information.";
38 description "Description for the metering label.";
41 grouping metering-rule-attrs {
42 description "OpenStack Layer3 Metering label rules.";
45 description "Metering Rule ID.";
50 description "Ingress direction.";
53 description "Egress direction.";
56 description "The direction in which metering rule is applied.";
59 leaf metering-label-id {
61 description "Metering Label ID to associate with this metering rule.";
63 leaf remote-ip-prefix {
64 description "The remote IP prefix to be associated with this metering rule. packet.";
69 description "Specify whether the remote_ip_prefix
70 will be excluded or not from traffic counters of
71 the metering label, ie: to not count the traffic
72 of a specific IP address of a range.";
77 grouping metering-labels-attributes {
78 container metering-labels {
79 description "Container for metering labels.";
82 uses attrs:base-attrs;
83 uses metering-label-attrs;
84 description "List of Metering Labels.";
88 grouping metering-rules-attributes {
89 container metering-rules {
90 description " Container for metering rules.";
93 uses metering-rule-attrs;
94 description "List of Metering Rules.";