Debian Codegraph @

neutron_lib/api/definitions/tap_mirror_both_direction.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13 import copy
14
15 from neutron_lib.api.definitions import taas
16 from neutron_lib.api.definitions import tap_mirror
17
18
19 ALIAS = 'tap-mirror-both-direction'
20 IS_SHIM_EXTENSION = False
21 IS_STANDARD_ATTR_EXTENSION = False
22 NAME = "Tap as a Service mirror with BOTH direction support"
23 DESCRIPTION = ("Neutron Tap as a Service extension mirroring with support "
24 "for BOTH direction.")
25 UPDATED_TIMESTAMP = "2025-12-15T11:45:00-00:00"
26
27 DIRECTION_SPEC = copy.deepcopy(tap_mirror.DIRECTION_SPEC)
28 DIRECTION_SPEC['type:dict'][taas.DIRECTION_BOTH] = {
29 'type:integer': None, 'default': None, 'required': False
30 }
31
32 RESOURCE_ATTRIBUTE_MAP = {
33 tap_mirror.COLLECTION_NAME: {
34 'directions': {
35 'allow_post': True, 'allow_put': False,
36 'validate': DIRECTION_SPEC,
37 'is_visible': True},
38 }
39 }
40
41 SUB_RESOURCE_ATTRIBUTE_MAP = None
42 ACTION_MAP = {}
43 ACTION_STATUS = {}
44 REQUIRED_EXTENSIONS = [tap_mirror.ALIAS]
45 OPTIONAL_EXTENSIONS = []