A meter rule sets the rule for a meter to measure traffic for a specific IP range. The following uses meter and requires the L3 metering extension.
Network v2
Create a new meter rule
openstack network meter rule create
[--project <project>]
[--project-domain <project-domain>]
[--exclude | --include]
[--ingress | --egress]
--remote-ip-prefix <remote-ip-prefix>
<meter>
--project
<project>
¶Owner’s project (name or ID)
--project-domain
<project-domain>
¶Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.
--exclude
¶Exclude remote IP prefix from traffic count
--include
¶Include remote IP prefix from traffic count (default)
--ingress
¶Apply rule to incoming network traffic (default)
--egress
¶Apply rule to outgoing network traffic
--remote-ip-prefix
<remote-ip-prefix>
¶The remote IP prefix to associate with this rule
meter
¶Label to associate with this metering rule (name or ID)
This command is provided by the python-openstackclient plugin.
Delete meter rule(s)
openstack network meter rule delete
<meter-rule-id>
[<meter-rule-id> ...]
meter-rule-id
¶Meter rule to delete (ID only)
This command is provided by the python-openstackclient plugin.
List meter rules
openstack network meter rule list
[--format-config-file FORMAT_CONFIG]
[--sort-column SORT_COLUMN]
--format-config-file
<FORMAT_CONFIG>
¶Config file for the dict-to-csv formatter
--sort-column
SORT_COLUMN
¶specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated
This command is provided by the python-openstackclient plugin.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.