ironic.networking.switch_drivers.driver_translators module

Driver Configuration Translators

This module contains translator classes that convert generic switch configuration into driver-specific configuration formats. Each translator handles the specifics of how a particular driver expects its configuration to be structured.

class ironic.networking.switch_drivers.driver_translators.BaseTranslator[source]

Bases: object

Base class for configuration translators.

translate_config(switch_name, config)[source]

Translate a single switch configuration.

Parameters:
  • switch_name – Name of the switch

  • config – Dictionary of configuration options for the switch

Returns:

Dictionary of section_name -> translated_config_dict

translate_configs(switch_configs)[source]

Translate all switch configurations.

Parameters:

switch_configs – Dictionary of switch_name -> config_dict

Returns:

Dictionary of section_name -> translated_config_dict