Package rtslib :: Module config

[hide private]
[frames] | no frames]

# Module config

    This file is part of LIO(tm).

    Copyright (c) 2012-2014 by Datera, Inc.
    More information on www.datera.io.

    Original author: Jerome Martin <jxm@netiant.com>

    Datera and LIO are trademarks of Datera, Inc., which may be registered in some
    jurisdictions.

    Licensed under the Apache License, Version 2.0 (the "License"); you may
    not use this file except in compliance with the License. You may obtain
    a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    License for the specific language governing permissions and limitations
    under the License.

Classes | [hide private]

| ConfigError
| Config The LIO configuration API.

Functions | [hide private]

dump_value(string) |

key_to_string(key) |

is_valid_backend(value, parent) |

sort_key(node) A sort key for configuration nodes, that ensures nodes potentially referenced in the config come first: storage before fabric and lun objects before acl objects. |

Variables | [hide private]

| DEBUG = `False`
| log = `logging.getLogger('Config')`
| __package__ = ``'``rtslib``'``

Function Details | [hide private]

### sort_key(node)

A sort key for configuration nodes, that ensures nodes potentially referenced in the config come first: storage before fabric and lun objects before acl objects. Also, attributes will be sorted before objects, so that configuration dumps are easier to read, with simple attributes coming before attribute groups.