1 # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
2 # Copyright (C) 2013 Isaku Yamahata <yamahata at valinux co jp>
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # based on netconf.xsd
21 MESSAGE_ID = 'message-id' # message-id attribute
24 TRANSPORT = 'transport'
26 APPLICATION = 'application'
30 INVALID_VALUE = 'invalid-value'
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'
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'
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'
73 OPERATION = 'operation' # operation attribute
81 # merge and replace are defined above
85 DEFAULT_OPERATION = 'default-operation'
89 RPC_REPLY = 'rpc-reply'
93 RPC_ERROR = 'rpc-error'
96 RPCOPERATION = 'rpcOperation'
99 RPCRESPONSE = 'rpcResponse'
101 CAPABILITIES = 'capabilities'
102 CAPABILITY = 'capability'
108 CONFIG_NAME = 'config-name'
110 CANDIDATE = 'candidate'
116 # rpc-operation-source
119 # rpc-operation-target
127 TYPE = 'type' # type attribute
131 TEST_THEN_SET = 'test-then-set'
133 TEST_OPTION = 'test-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'
145 GET_CONFIG = 'get-config'
148 EDIT_CONFIG = 'edit-config'
151 COPY_CONFIG = 'copy-config'
154 DELETE_CONFIG = 'delete-config'
163 VALIDATE = 'validate'
166 CONFIRMED = 'confirmed'
167 CONFIRM_TIMEOUT = 'confirm-timeout'
169 PERSIST_ID = 'persist-id'
173 # persist-id is defined above
174 # PERSIST_ID = 'persist-id'
175 CANCEL_COMMIT = 'cancel-commit'
178 DISCARD_CHANGES = 'discard-changes'
181 CLOSE_SESSION = 'close-session'
184 KILL_SESSION = 'kill-session'