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)

Generate configuration digraph

Generate the configuration digraph from the config

Parameters:
  • config – graph configuration file
  • default_config – default parameters (from –params)
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