0232ead2c3
Add meter flows actions and ovsdb actions for pps limitation. Meter flow actions are: * list_meter_features * create_meter * delete_meter * update_meter * apply_meter_to_port * remove_meter_from_port Ovsdb actions are: * get_port_tag_by_name * get_value_from_other_config * set_value_to_other_config * remove_value_from_other_config Partially-Implements: bp/packet-rate-limit Related-Bug: #1938966 Related-Bug: #1912460 Change-Id: Idc9a2b1f39964fc3b603310ac7f22c1bc58d27f7
22 lines
807 B
Python
22 lines
807 B
Python
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from neutron_lib import exceptions
|
|
|
|
from neutron._i18n import _
|
|
|
|
|
|
class OVSDBPortError(exceptions.NeutronException):
|
|
message = _("Port %(port)s is not found in ovsdb. "
|
|
"Or the requested value type is invalid.")
|