The diskimage_builder.block_device.config Module

The diskimage_builder.block_device.config Module

diskimage_builder.block_device.config.config_tree_to_graph(config)

Turn a YAML config into a graph config

Our YAML config is a list of entries. Each

Arguments: :parm config: YAML config; either graph or tree :return: graph-based result

diskimage_builder.block_device.config.create_graph(config, default_config, state)

Generate configuration digraph

Generate the configuration digraph from the config

Parameters:
  • config – graph configuration file
  • default_config – default parameters (from –params)
  • state – reference to global state dictionary. Passed to PluginBase.__init__()
Returns:

tuple with the graph object (a nx.Digraph), ordered list of NodeBase objects

diskimage_builder.block_device.config.is_a_plugin(name)
diskimage_builder.block_device.config.recurse_config(config, parent_base=None)

Convert a config “tree” to it’s canonical name/base graph version

This is a recursive function to convert a YAML layout “tree” config into a “flat” graph-based config.

Arguments: :param config: the incoming config dictionary :param parent_base: the name of the parent node, if any :return: a list of expanded, graph-based config items

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.