prefix neutron-metering;
import ietf-yang-types { prefix "yang"; }
- // It requires rfc6991 (revision 2013-07-15), but odl don't have it, so this patch verify build will fail.
- import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
+ import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; }
import neutron-attrs { prefix "attrs"; }
import neutron-constants { prefix "constants"; }
grouping metering-label-attributes {
description "OpenStack Layer3 Metering label information.";
- leaf description {
- type string;
- description "Description for the metering label.";
+ leaf shared {
+ type boolean;
+ description "Indicates whether this metering label is shared across all tenants.";
+ default "false";
}
}
grouping metering-rule-attributes {
description "OpenStack Layer3 Metering label rules.";
- leaf id {
+ leaf uuid {
type yang:uuid;
description "Metering Rule ID.";
}
+ leaf tenant-id {
+ type yang:uuid;
+ description "The UUID of the tenant that will own the object.";
+ }
leaf direction {
type identityref {
base "constants:direction-base";
}
leaf excluded {
type boolean;
- description "Specify whether the remote_ip_prefix
+ description "Specify whether the remote_ip_prefix
will be excluded or not from traffic counters of
the metering label, ie: to not count the traffic
of a specific IP address of a range.";
container metering-rules {
description " Container for metering rules.";
list metering-rule {
- key "id";
+ key "uuid";
uses metering-rule-attributes;
description "List of Metering Rules.";
}