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 20RPC = 'rpc' 21MESSAGE_ID = 'message-id' # message-id attribute 22 23# error 24TRANSPORT = 'transport' 25PROTOCOL = 'protocol' 26APPLICATION = 'application' 27 28# error-tag 29IN_USE = 'in-use' 30INVALID_VALUE = 'invalid-value' 31TOO_BIG = 'too-big' 32MISSING_ATTRIBUTE = 'missing-attribute' 33BAD_ATTRIBUTE = 'bad-attribute' 34UNKNOWN_ATTRIBUTE = 'unknown-attribute' 35MISSING_ELEMENT = 'missing-element' 36BAD_ELEMENT = 'bad-element' 37UNKNOWN_ELEMENT = 'unknown-element' 38UNKNOWN_NAMESPACE = 'unknown-namespace' 39ACCESS_DENIED = 'access-denied' 40LOCK_DENIED = 'lock-denied' 41RESOURCE_DENIED = 'resource-denied' 42ROLLBACK_FAILED = 'rollback-failed' 43DATA_EXISTS = 'data-exists' 44DATA_MISSING = 'data-missing' 45OPERATION_NOT_SUPPORTED = 'operation-not-supported' 46OPERATION_FAILED = 'operation-failed' 47PARTIAL_OPERATION = 'partial-operation' 48MALFORMED_MESSAGE = 'malformed-message' 49 50# error-severity 51ERROR = 'error' 52WARNING = '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' 59ERR_ELEMENT = 'err-element' 60NOOP_ELEMENT = 'noop-element' 61BAD_NAMESPACE = 'bad-namespace' 62 63# rpc-error 64ERROR_TYPE = 'error-type' 65ERROR_TAG = 'error-tag' 66ERROR_SEVERITY = 'error-severity' 67ERROR_APP_TAG = 'error-app-tag' 68ERROR_PATH = 'error-path' 69ERROR_MESSAGE = 'error-message' 70ERROR_INFO = 'error-info' 71 72# edit-operation 73OPERATION = 'operation' # operation attribute 74MERGE = 'merge' 75REPLACE = 'replace' 76CREATE = 'create' 77DELETE = 'delete' 78REMOVE = 'remove' 79 80# default-operation 81# merge and replace are defined above 82# MERGE = 'merge' 83# REPLACE = 'replace' 84NONE = 'none' 85DEFAULT_OPERATION = 'default-operation' 86 87# rpc-reply 88OK = 'ok' 89RPC_REPLY = 'rpc-reply' 90 91# data-inline 92DATA = 'data' 93RPC_ERROR = 'rpc-error' 94 95# rpc-operation 96RPCOPERATION = 'rpcOperation' 97 98# rpc-response 99RPCRESPONSE = 'rpcResponse' 100HELLO = 'hello' 101CAPABILITIES = 'capabilities' 102CAPABILITY = 'capability' 103 104# config-inline 105CONFIG = 'config' 106 107# config-name 108CONFIG_NAME = 'config-name' 109STARTUP = 'startup' 110CANDIDATE = 'candidate' 111RUNNING = 'running' 112 113# config-uri 114URL = 'url' 115 116# rpc-operation-source 117SOURCE = 'source' 118 119# rpc-operation-target 120TARGET = 'target' 121 122# filter 123SUBTREE = 'subtree' 124XPATH = 'xpath' 125 126# filter-inline 127TYPE = 'type' # type attribute 128FILTER = 'filter' 129 130# test-option 131TEST_THEN_SET = 'test-then-set' 132SET = 'set' 133TEST_OPTION = 'test-option' 134 135# error-option 136STOP_ON_ERROR = 'stop-on-error' 137IGNORE_ERROR = 'ignore-error' 138ROLLBACK_ON_ERROR = 'rollback-on-error' 139ERROR_OPTION = 'error-option' 140 141# get 142GET = 'get' 143 144# get-config 145GET_CONFIG = 'get-config' 146 147# edit-config 148EDIT_CONFIG = 'edit-config' 149 150# copy-config 151COPY_CONFIG = 'copy-config' 152 153# delete-config 154DELETE_CONFIG = 'delete-config' 155 156# lock 157LOCK = 'lock' 158 159# unlock 160UNLOCK = 'unlock' 161 162# validate 163VALIDATE = 'validate' 164 165# commit 166CONFIRMED = 'confirmed' 167CONFIRM_TIMEOUT = 'confirm-timeout' 168PERSIST = 'persist' 169PERSIST_ID = 'persist-id' 170COMMIT = 'commit' 171 172# cancel-commit 173# persist-id is defined above 174# PERSIST_ID = 'persist-id' 175CANCEL_COMMIT = 'cancel-commit' 176 177# discard-changes 178DISCARD_CHANGES = 'discard-changes' 179 180# close-session 181CLOSE_SESSION = 'close-session' 182 183# kill-session 184KILL_SESSION = 'kill-session' 185