Debian Codegraph @

neutron_lib/api/definitions/extraroute_atomic.py

raw
1 # Copyright 2019 Ericsson Software Technology
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14
15 from neutron_lib.api.definitions import extraroute
16 from neutron_lib.api.definitions import l3
17
18
19 ALIAS = 'extraroute-atomic'
20 IS_SHIM_EXTENSION = False
21 IS_STANDARD_ATTR_EXTENSION = False
22 NAME = 'Atomically add/remove extra routes'
23 DESCRIPTION = ('Edit extra routes of a router on server side by atomically '
24 'adding/removing extra routes')
25 UPDATED_TIMESTAMP = '2019-07-10T00:00:00+00:00'
26 RESOURCE_ATTRIBUTE_MAP = {
27 l3.ROUTERS: {}
28 }
29 SUB_RESOURCE_ATTRIBUTE_MAP = None
30 ACTION_MAP = l3.ACTION_MAP
31 ACTION_MAP[l3.ROUTER].update({
32 'add_extraroutes': 'PUT',
33 'remove_extraroutes': 'PUT',
34 })
35 REQUIRED_EXTENSIONS = [l3.ALIAS, extraroute.ALIAS]
36 OPTIONAL_EXTENSIONS = []
37 ACTION_STATUS = {}