Correct csv creation in case of no path

previously reported the requested bandwidth, now fill it with an
empty string, same as the other fields.

This will be updated in a later PR when different kind of blocking
will be supported

Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com>
This commit is contained in:
EstherLerouzic
2019-08-19 12:37:22 +01:00
parent e8e126a6ce
commit 9ca72d6105

View File

@@ -406,9 +406,13 @@ def jsontocsv(json_data,equipment,fileout):
path_id = p['response-id']
try:
if p['no-path'] :
source = ''
destination = ''
tsp = ''
mode = ''
isok = False
nb_tsp = 0
pthbdbw = round(path_bandwidth*1e-9,2)
pthbdbw = ''
rosnr = ''
rsnr = ''
rsnrb = ''