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
21d5fe97
Commit
21d5fe97
authored
8 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Fix WebUI imports related to qkd_app
parent
dbfc7281
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!268
Resolve "(OPT) Integrate QKD tests in TFS CI/CD pipeline"
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/webui/service/__init__.py
+10
-10
10 additions, 10 deletions
src/webui/service/__init__.py
src/webui/service/qkd_app/routes.py
+5
-5
5 additions, 5 deletions
src/webui/service/qkd_app/routes.py
with
15 additions
and
15 deletions
src/webui/service/__init__.py
+
10
−
10
View file @
21d5fe97
...
...
@@ -83,32 +83,32 @@ def create_app(use_config=None, web_app_root=None):
app
.
register_blueprint
(
healthz
,
url_prefix
=
'
/healthz
'
)
from
webui.service.js.routes
import
js
# pylint: disable=import-outside-toplevel
from
webui.service.js.routes
import
js
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
js
)
from
webui.service.main.routes
import
main
# pylint: disable=import-outside-toplevel
from
webui.service.main.routes
import
main
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
main
)
from
webui.service.load_gen.routes
import
load_gen
# pylint: disable=import-outside-toplevel
from
webui.service.load_gen.routes
import
load_gen
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
load_gen
)
from
webui.service.service.routes
import
service
# pylint: disable=import-outside-toplevel
from
webui.service.service.routes
import
service
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
service
)
from
webui.service.slice.routes
import
slice
# pylint: disable=import-outside-toplevel,redefined-builtin
from
webui.service.slice.routes
import
slice
# pylint: disable=import-outside-toplevel,redefined-builtin
app
.
register_blueprint
(
slice
)
from
webui.service.device.routes
import
device
# pylint: disable=import-outside-toplevel
from
webui.service.device.routes
import
device
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
device
)
from
webui.service.bgpls.routes
import
bgpls
# pylint: disable=import-outside-toplevel
from
webui.service.bgpls.routes
import
bgpls
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
bgpls
)
from
webui.service.link.routes
import
link
# pylint: disable=import-outside-toplevel
from
webui.service.link.routes
import
link
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
link
)
from
webui.service.qkd_app.routes
import
qkd_app
as
_qkd_app
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
_
qkd_app
)
from
webui.service.qkd_app.routes
import
qkd_app
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
qkd_app
)
from
webui.service.policy_rule.routes
import
policy_rule
# pylint: disable=import-outside-toplevel
app
.
register_blueprint
(
policy_rule
)
...
...
This diff is collapsed.
Click to expand it.
src/webui/service/qkd_app/routes.py
+
5
−
5
View file @
21d5fe97
...
...
@@ -25,12 +25,12 @@ from qkd_app.client.QKDAppClient import QKDAppClient
LOGGER
=
logging
.
getLogger
(
__name__
)
app
=
Blueprint
(
'
qkd_app
'
,
__name__
,
url_prefix
=
'
/qkd_app
'
)
qkd_
app
=
Blueprint
(
'
qkd_app
'
,
__name__
,
url_prefix
=
'
/qkd_app
'
)
qkd_app_client
=
QKDAppClient
()
context_client
=
ContextClient
()
@app.get
(
'
/
'
)
@
qkd_
app.get
(
'
/
'
)
def
home
():
if
'
context_uuid
'
not
in
session
or
'
topology_uuid
'
not
in
session
:
flash
(
"
Please select a context!
"
,
"
warning
"
)
...
...
@@ -68,10 +68,10 @@ def home():
context_client
.
close
()
return
render_template
(
'
app/home.html
'
,
apps
=
apps
,
device_names
=
device_names
,
ate
=
QKDAppTypesEnum
,
ase
=
QKDAppStatusEnum
)
'
qkd_
app/home.html
'
,
apps
=
apps
,
device_names
=
device_names
,
ate
=
QKDAppTypesEnum
,
ase
=
QKDAppStatusEnum
)
@app.route
(
'
detail/<path:app_uuid>
'
,
methods
=
(
'
GET
'
,
'
POST
'
))
@
qkd_
app.route
(
'
detail/<path:app_uuid>
'
,
methods
=
(
'
GET
'
,
'
POST
'
))
def
detail
(
app_uuid
:
str
):
'''
context_client.connect()
...
...
@@ -87,7 +87,7 @@ def detail(app_uuid: str):
'''
pass
@app.get
(
'
<path:app_uuid>/delete
'
)
@
qkd_
app.get
(
'
<path:app_uuid>/delete
'
)
def
delete
(
app_uuid
):
'''
try:
...
...
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