-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config YAML parser behaviour depends on the line ordering in the YAML file #987
Comments
Hi bradunov,
As you said the code supports configuring the compression parameters per cell, so it is ok to configure them there. We added this support in case that you have multiple cells with different RUs that support different parameters. You can configure all the parameters in the ru_ofh section but
I will check this. As you said, it seems something related to the order of parsing. |
Hi bradunov, I checked it and it the order was important. There is a proposal to fix this, if you want to test it , I leave here a diff:
|
Hi AlaiaL, I've checked the patch and it works. Please let me know when you push it so I can update my config files. Thanks! |
Issue Description
Config YAML parser behaviour depends on the line ordering in the YAML file.
Setup Details
I am running srsRAN on Azure Linux 3.0 with Foxconn RU. I am using the latest commit (
e5d5b44b9
). The suspected bug is likely in the YAML parsing library.Expected Behavior
I want to disable PRACH compression using
compr_method_prach: none
parameter inru_ofh
section.This works if
compr_method_prach
is before thecells
key. If it is after, it gets ignored.YAML parameter values should not depend on the order.
Actual Behaviour
If I put
compr_method_prach: none
aftercells
key inru_ofh
, it gets ignored.Steps to reproduce the problem
I want to disable the PRACH compression. I used a sample configuration file and it worked. Here is the relevant snippet:
The RAN starts with the following message:
PRACH compression is
none
, as expected.I needed to write a script that modifies the YAML file in python. The python script rearranged the order of the config as follows:
Note that it is the same as above, except that
cells
section is before the rest. Now it seems that the PRACH config was ignored, as the starting message showed:Notice that the PRAC compression is now BFP, although the config file says
compr_method_prach: none
.I also noticed that I can make it work again if I make
compr_method_prach: none
as a part of thecells
config, as shown here:I suspect that your code loads the default values, including
compr_method_prach
first, and then when you parse thecells
section you delete all the default values and populate with the ones within the cell. The problem is that you seem to delete the default values even if they are not populated in the cells section.Also, at least according to this documentation,
compr_method_prach
is not a part of thecells
section, so the last configuration option should not be accepted.The text was updated successfully, but these errors were encountered: