ironic.common.trait_based_networking.config_file module¶
- class ironic.common.trait_based_networking.config_file.ConfigFile(filename)[source]¶
Bases:
objectProvides functionality to read TBN configuration files
Basic flow for use goes like:
cf = ConfigFile(“some_tbn_config.yaml”) # File is read(). valid, reasons = cf.validate() if not valid:
# Do something with reasons, like raise an exception and log. return reasons
cf.parse() # If the file is valid, this should parse the config traits = cf.traits() # Get the parsed traits as a list.