In reply to Michael54:
The apply_config_settings is an old approach to getting configuration values from the config_db. If you set a variable in the config_db, part of the field macro implementation would be to retrieve that value from the config_db and assign it to the specified variable.
This method isn’t recommended as there are some significant limitations:
- Only certain datatypes are supported
- Names had to match
- The implemention code is inefficient
- Each variable requires a config_db entry, potentially limiting performance
The recommendation is to use an agent configuration object which encapsulates all the required configuration variables, including the virtual interface handle. You now have one object to pass in the config_db to the component instead of multiple entries.