Skip to content

Directory Management for the deviceConfig.yml #124

@Ulrond

Description

@Ulrond

Discussed in #100

Originally posted by Ulrond September 25, 2024

Goal: Remote Device Config

globalConfig:
    includes:
        # [ includes: ]
        # [ deviceConfig: "required.yml file"  ]
        deviceConfig: "example_device_config.yml"

deviceConfig needs to support the downloading of a URL location for the deviceConfiguration for all box types.

Local Config

Where the rackConfig is specificed as a local directory, then the deviceConfig is expected to be relataive path to that directory

test.py --config "./myConfigs/rackConfig.,yml

Then in rackConfig.yaml

globalConfig:
    includes:
        # [ includes: ]
        # [ deviceConfig: "required.yml file"  ]
        deviceConfig: "device_config.yml"

Would mean that device_config.yml also exists in the ./myConfigs/ directory

New operation

By default also as it currently exists the deviceConfig is relative to the ${CWD} of the test.

but if we add a prefix it will be clearer

${rackConfigFolder}/<relative to my rack Config directory>
${workspaceFolder}/<relative to the workspaceFolder directory>

e.g.

deviceConfig: "${rackConfigFolder}/device_config.yml"

In the case of a URL then it's downloaded as an absolute path as required.

deviceConfig: https://github.com/rdkcentral/python_raft/blob/master/examples/configs/example_device_config.yml

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions