neutron/neutron/tests/unit/services
leegy a01780203b Fix meter-label-rule creation
The existing method is to meter outgoing traffic from the entire VM
to a specific "remote_ip_addr"(in case of outbound),
but the method I suggested can meter outgoing traffic
from a particular subnet to external network.

From a metering point of view,
it does not matter which address/CIDR is the destination for outbound.
But, it is important to know where(subnet or VM) the packet leaves from.
That way you can see how much VMs are using the external network.
For outbound metering, dst is 0.0.0.0/0 and src is network of VMs
and for inbound metering, src is 0.0.0.0/0 and dst is network of VMs.

When creating a meter-label-rule, it is correct
to specify src address for "remote_ip_prefix" option for outbound
and specify dst address for inbound.
If you are confused by the term "remote_ip_prefix",
you need to clarify this option.

Change-Id: Ia3f3e26410a73d7b44abae637703fda41c4bc09a
Closes-Bug: #1716913
(cherry picked from commit 92db1d4a2c)
2018-04-16 16:34:22 +00:00
..
auto_allocate Merge "Make DHCP notifier use core resource events" 2016-09-14 21:11:53 +00:00
l3_router Make UUIDField actually validate UUIDs 2016-12-07 15:11:43 +00:00
metering Fix meter-label-rule creation 2018-04-16 16:34:22 +00:00
qos Don't create new QoS policy during update operation 2017-11-27 20:21:29 +00:00
revisions Transition qos notification driver into qos driver 2017-01-25 14:13:36 +01:00
trunk LB Trunk: Stop matching MAC of subport to port model 2017-03-04 01:35:46 +00:00
__init__.py Empty files should not contain copyright or license 2014-10-20 00:50:32 +00:00
test_provider_configuration.py Use more specific asserts in tests 2016-08-23 07:36:49 +02:00