Skip to content
Snippets Groups Projects
Commit b9fb60a2 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Check CI/CD for CRDB in OFC24

parent 48cfce7a
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!285Resolve: "(CNIT) New SBI Driver based on OpenROADM for ROADMs"
...@@ -223,9 +223,10 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig): ...@@ -223,9 +223,10 @@ def set_opticalconfig(db_engine : Engine, request : OpticalConfig):
stmt = stmt.returning(RoadmTypeModel.roadm_uuid) stmt = stmt.returning(RoadmTypeModel.roadm_uuid)
roadm_id = session.execute(stmt).fetchone() roadm_id = session.execute(stmt).fetchone()
LOGGER.warning('channels={:s}'.format(str(channels)))
stmt = insert(ChannelModel).values(channels) stmt = insert(ChannelModel).values(channels)
stmt = stmt.on_conflict_do_update( stmt = stmt.on_conflict_do_update(
index_elements=[ChannelModel.channel_uuid ], index_elements=[ChannelModel.channel_uuid],
set_=dict( set_=dict(
band_name = stmt.excluded.band_name, band_name = stmt.excluded.band_name,
lower_frequency = stmt.excluded.lower_frequency, lower_frequency = stmt.excluded.lower_frequency,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment