Package rtslib :: Module config_live

[hide private]
[frames] | no frames]

# Module config_live

    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.

Functions | [hide private]

_b2h(b) |

get_root() |

_list_live_group_attrs(rts_obj) Returns a list of all group attributes for the rts_obj rtslib object currently running on the live system, in LIO configuration file format. |

dump_live() Returns a text dump of the objects and attributes currently running on the live system, in LIO configuration file format. |

dump_live_storage() Returns a text dump of the storage objects and attributes currently running on the live system, in LIO configuration file format. |

dump_live_fabric() Returns a text dump of the fabric objects and attributes currently running on the live system, in LIO configuration file format. |

obj_attr(obj, attr) Returns the value of attribute attr of the ConfigTree obj. |

apply_group_attrs(obj, lio_obj) Applies group attributes obj to the live lio_obj. |

apply_create_obj(obj) Creates an object on the live system. |

apply_delete_obj(obj) Deletes an object from the live system. |

clear_configfs() Clears the live configfs by deleteing all nodes. |

Variables | [hide private]

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

Function Details | [hide private]

### obj_attr(obj, attr)

Returns the value of attribute attr of the ConfigTree obj. If we cannot find the attribute, a ConfigError exception will be raised. Else, the attribute's value will be converted from its internal string representation to whatever rtslib expects.