Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
1e806759
Commit
1e806759
authored
7 months ago
by
Alberto Gonzalez Barneo
Browse files
Options
Downloads
Patches
Plain Diff
Added init with QKDAppClient
parent
feb2426a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!264
Resolve "(OPT) UI Integration for QKD Management (WebUI)"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/webui/service/__init__.py
+4
-4
4 additions, 4 deletions
src/webui/service/__init__.py
with
4 additions
and
4 deletions
src/webui/service/__init__.py
+
4
−
4
View file @
1e806759
...
...
@@ -19,7 +19,7 @@ from flask_healthz import healthz, HealthError
from
common.tools.grpc.Tools
import
grpc_message_to_json
from
context.client.ContextClient
import
ContextClient
from
device.client.DeviceClient
import
DeviceClient
from
app.client.AppClient
import
AppClient
from
app.client.
QKD
AppClient
import
QKD
AppClient
def
get_working_context
()
->
str
:
return
session
[
'
context_uuid
'
]
if
'
context_uuid
'
in
session
else
'
---
'
...
...
@@ -39,9 +39,9 @@ def readiness():
device_client
.
connect
()
device_client
.
close
()
# DEPENDENCY QKD
app_client
=
AppClient
()
app_client
.
connect
()
app_client
.
close
()
qkd_
app_client
=
QKD
AppClient
()
qkd_
app_client
.
connect
()
qkd_
app_client
.
close
()
except
Exception
as
e
:
raise
HealthError
(
"
Can
'
t connect with the service: {:s}
"
.
format
(
str
(
e
)))
from
e
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment