"Fossies" - the Fresh Open Source Software Archive

Member "cinder-14.0.2/cinder/volume/drivers/veritas/hs_constants.py" (4 Oct 2019, 1372 Bytes) of package /linux/misc/openstack/cinder-14.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "hs_constants.py" see the Fossies "Dox" file reference documentation.

    1 # Copyright (c) 2017 Veritas Technologies LLC.  All rights reserved.
    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 """
   16 Error Codes
   17 """
   18 
   19 EX_BAD_PARAM = 10
   20 EX_BAD_MESSAGE = 106
   21 MSG_SUCCESS = 0
   22 MSG_ERROR = 1
   23 
   24 """
   25 Constants
   26 """
   27 HS_VHOST = "/"
   28 ACK_YES = 1
   29 ACK_NO = 0
   30 BLK_YES = 1
   31 BLK_NO = 0
   32 EXCH_DIRECT = "direct"
   33 EXCH_FANOUT = "fanout"
   34 EXCH_TOPIC = "topic"
   35 
   36 MSG_REQUEST = 1
   37 MSG_RESPONSE = 2
   38 MSG_TOKEN = "token"
   39 MSG_OWNER = "owner"
   40 MSG_TYPE = "type"
   41 MSG_ERROR = "err_code"
   42 MSG_ACK = "ack"
   43 MSG_BLK = "blocking"
   44 MSG_BLK_INFO = "blocking_info"
   45 MSG_BLK_NAME = "name"
   46 MSG_BLK_BINDKEY = "bindkey"
   47 MSG_BLK_TYPE = "type"
   48 MSG_PAYLOAD = "payload"
   49 
   50 # HyperScale Controller Exchange
   51 HS_CONTROLLER_EXCH = 'hyperscale-controller'
   52 HS_RPC_EXCH = 'hyperscale-recv'
   53 HS_DATANODE_EXCH = 'hyperscale-datanode'
   54 HS_COMPUTE_EXCH = 'hyperscale-storage'
   55 
   56 SNAP_RESTORE_RF = 3