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 import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; }
18 import neutron-attrs { prefix "attrs"; }
19 import neutron-constants { prefix "constants"; }
21 organization "OpenDaylight Neutron Group";
23 contact "J. Gregory Hall <ghall@brocade.com>, Kiran Sreenivasa <kkoushik@brocade.com>";
25 description "This YANG module defines Openstack Neutron Metering attributes";
27 revision "2015-07-12" {
29 "OpenDaylight Beryllium release";
32 grouping metering-label-attributes {
33 description "OpenStack Layer3 Metering label information.";
36 description "Indicates whether this metering label is shared across all tenants.";
41 grouping metering-rule-attributes {
42 description "OpenStack Layer3 Metering label rules.";
45 description "Metering Rule ID.";
49 description "The UUID of the tenant that will own the object.";
53 base "constants:direction-base";
55 description "The direction in which metering rule is applied.";
57 leaf metering-label-id {
59 description "Metering Label ID to associate with this metering rule.";
61 leaf remote-ip-prefix {
62 description "The remote IP prefix to be associated with this metering rule. packet.";
67 description "Specify whether the remote_ip_prefix
68 will be excluded or not from traffic counters of
69 the metering label, ie: to not count the traffic
70 of a specific IP address of a range.";
75 grouping metering-labels-attributes {
76 container metering-labels {
77 description "Container for metering labels.";
80 uses attrs:base-attributes;
81 uses metering-label-attributes;
82 description "List of Metering Labels.";
87 grouping metering-rules-attributes {
88 container metering-rules {
89 description " Container for metering rules.";
92 uses metering-rule-attributes;
93 description "List of Metering Rules.";