fix case where there are multiple multiband amps matching the sub amp type

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
Change-Id: Ibe86499866f2f9e3dfd70b51a33b919d584b812b
This commit is contained in:
EstherLerouzic
2024-10-25 16:12:16 +02:00
parent 94a6f922cd
commit e593b8c9ec
3 changed files with 4 additions and 4 deletions

View File

@@ -580,7 +580,7 @@ def network_from_json(json_data: dict, equipment: dict) -> DiGraph:
except ConfigurationError as e:
msg = f'Node {el_config["uid"]}: {e}'
raise ConfigurationError(msg)
if variety is not None and variety != multiband_type_variety:
if variety is not None and variety not in multiband_type_variety:
raise ConfigurationError(f'In node {el_config["uid"]}: multiband amplifier type_variety is not '
+ 'consistent with its amps type varieties.')
if not amps and extra_params is not None: