openstack.network.v2.metering_label_rule¶
The MeteringLabelRule Class¶
The MeteringLabelRule
class inherits from Resource
.
-
class
openstack.network.v2.metering_label_rule.
MeteringLabelRule
(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()
andResource.existing()
.Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
True
if this Resource exists on the server,False
if it does not.
-
direction
= None¶ ingress or egress: The direction in which metering label rule is applied. Default:
"ingress"
-
is_excluded
= None¶ 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. Default:False
, Type: bool
-
metering_label_id
= None¶ The metering label ID to associate with this metering label rule.
-
remote_ip_prefix
= None¶ The remote IP prefix to be associated with this metering label rule.