backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / lib / netconf / constants.py
1 # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
2 # Copyright (C) 2013 Isaku Yamahata <yamahata at valinux co jp>
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 # based on netconf.xsd
18
19 # rpc
20 RPC = 'rpc'
21 MESSAGE_ID = 'message-id'      # message-id attribute
22
23 # error
24 TRANSPORT = 'transport'
25 PROTOCOL = 'protocol'
26 APPLICATION = 'application'
27
28 # error-tag
29 IN_USE = 'in-use'
30 INVALID_VALUE = 'invalid-value'
31 TOO_BIG = 'too-big'
32 MISSING_ATTRIBUTE = 'missing-attribute'
33 BAD_ATTRIBUTE = 'bad-attribute'
34 UNKNOWN_ATTRIBUTE = 'unknown-attribute'
35 MISSING_ELEMENT = 'missing-element'
36 BAD_ELEMENT = 'bad-element'
37 UNKNOWN_ELEMENT = 'unknown-element'
38 UNKNOWN_NAMESPACE = 'unknown-namespace'
39 ACCESS_DENIED = 'access-denied'
40 LOCK_DENIED = 'lock-denied'
41 RESOURCE_DENIED = 'resource-denied'
42 ROLLBACK_FAILED = 'rollback-failed'
43 DATA_EXISTS = 'data-exists'
44 DATA_MISSING = 'data-missing'
45 OPERATION_NOT_SUPPORTED = 'operation-not-supported'
46 OPERATION_FAILED = 'operation-failed'
47 PARTIAL_OPERATION = 'partial-operation'
48 MALFORMED_MESSAGE = 'malformed-message'
49
50 # error-severity
51 ERROR = 'error'
52 WARNING = 'warning'
53
54 # error-info
55 # bad-attribute, bad-element and ok-element are defined above
56 # BAD_ATTRIBUTE = 'bad-attribute'
57 # BAD_ELEMENT = 'bad-element'
58 # OK_ELEMENT = 'ok-element'
59 ERR_ELEMENT = 'err-element'
60 NOOP_ELEMENT = 'noop-element'
61 BAD_NAMESPACE = 'bad-namespace'
62
63 # rpc-error
64 ERROR_TYPE = 'error-type'
65 ERROR_TAG = 'error-tag'
66 ERROR_SEVERITY = 'error-severity'
67 ERROR_APP_TAG = 'error-app-tag'
68 ERROR_PATH = 'error-path'
69 ERROR_MESSAGE = 'error-message'
70 ERROR_INFO = 'error-info'
71
72 # edit-operation
73 OPERATION = 'operation'         # operation attribute
74 MERGE = 'merge'
75 REPLACE = 'replace'
76 CREATE = 'create'
77 DELETE = 'delete'
78 REMOVE = 'remove'
79
80 # default-operation
81 # merge and replace are defined above
82 # MERGE = 'merge'
83 # REPLACE = 'replace'
84 NONE = 'none'
85 DEFAULT_OPERATION = 'default-operation'
86
87 # rpc-reply
88 OK = 'ok'
89 RPC_REPLY = 'rpc-reply'
90
91 # data-inline
92 DATA = 'data'
93 RPC_ERROR = 'rpc-error'
94
95 # rpc-operation
96 RPCOPERATION = 'rpcOperation'
97
98 # rpc-response
99 RPCRESPONSE = 'rpcResponse'
100 HELLO = 'hello'
101 CAPABILITIES = 'capabilities'
102 CAPABILITY = 'capability'
103
104 # config-inline
105 CONFIG = 'config'
106
107 # config-name
108 CONFIG_NAME = 'config-name'
109 STARTUP = 'startup'
110 CANDIDATE = 'candidate'
111 RUNNING = 'running'
112
113 # config-uri
114 URL = 'url'
115
116 # rpc-operation-source
117 SOURCE = 'source'
118
119 # rpc-operation-target
120 TARGET = 'target'
121
122 # filter
123 SUBTREE = 'subtree'
124 XPATH = 'xpath'
125
126 # filter-inline
127 TYPE = 'type'           # type attribute
128 FILTER = 'filter'
129
130 # test-option
131 TEST_THEN_SET = 'test-then-set'
132 SET = 'set'
133 TEST_OPTION = 'test-option'
134
135 # error-option
136 STOP_ON_ERROR = 'stop-on-error'
137 IGNORE_ERROR = 'ignore-error'
138 ROLLBACK_ON_ERROR = 'rollback-on-error'
139 ERROR_OPTION = 'error-option'
140
141 # get
142 GET = 'get'
143
144 # get-config
145 GET_CONFIG = 'get-config'
146
147 # edit-config
148 EDIT_CONFIG = 'edit-config'
149
150 # copy-config
151 COPY_CONFIG = 'copy-config'
152
153 # delete-config
154 DELETE_CONFIG = 'delete-config'
155
156 # lock
157 LOCK = 'lock'
158
159 # unlock
160 UNLOCK = 'unlock'
161
162 # validate
163 VALIDATE = 'validate'
164
165 # commit
166 CONFIRMED = 'confirmed'
167 CONFIRM_TIMEOUT = 'confirm-timeout'
168 PERSIST = 'persist'
169 PERSIST_ID = 'persist-id'
170 COMMIT = 'commit'
171
172 # cancel-commit
173 # persist-id is defined above
174 # PERSIST_ID = 'persist-id'
175 CANCEL_COMMIT = 'cancel-commit'
176
177 # discard-changes
178 DISCARD_CHANGES = 'discard-changes'
179
180 # close-session
181 CLOSE_SESSION = 'close-session'
182
183 # kill-session
184 KILL_SESSION = 'kill-session'