Comment 8 for bug 1557457

Revision history for this message
Jun Wei Wang (wjw7869) wrote :

yes, we will add one public/external traffic quotas property in Contrail Project Quotas. Public traffic quotas property at least include public traffic inbound and traffic outbound quotas. if we create new network, it will occupy some public traffic or all network share the total public/exteranl traffic quotas. we could also allocate the public traffic quotas based on some algorithms.

In contrail simple gateway solution, there may be several gateways for VMs in the project/tenant. One gateway is one host linux server. If there are two gateways ( A and B) for the tenant, some VM access the external network via the gateway A and the others access the external network via the gateway B. so we also add struct, gateway external quotas, in the computer node( gateways node) to record the external traffic for this project in this gateway.
So we also add some codes in the contraill controller to calculate the external project quotas for the every gateway in the same project. If the external traffic in the gateway changs distinctly, we need to update the external projects quotas in the gateway.