Amplifier disable field

* toggle true/false in eqpt_config json file to allow the use of a given amplifier type in automatic design: eqpt_config[Edfa][allowed_for_design] : true/false
* automatic design is picking the best amplifier (gain, NF constraints)
among the available ones: if toggle to false, the type is deemed non
available. Only alternative before this feature was to remove the
amplifier from eqpt_config library.
* if set to false, the amplifier type can still be input in the network
topology file: it will be recongized.

Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
Jean-Luc Auge
2018-08-02 12:50:13 +02:00
parent d1c7489768
commit 167e644bd0
4 changed files with 20 additions and 14 deletions

View File

@@ -323,7 +323,7 @@ class Fiber(Node):
# TODO|dutc: eliminate duplication with .equipment.EdfaBase
EdfaParams = namedtuple('EdfaParams',
'type_variety, type_def, gain_flatmax gain_min p_max'
' nf_model nf_fit_coeff nf_ripple dgt gain_ripple')
' nf_model nf_fit_coeff nf_ripple dgt gain_ripple allowed_for_design')
class EdfaOperational:
def __init__(self, gain_target, tilt_target):
self.gain_target = gain_target