Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netvs-middleware
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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
scc-net
netvs
netvs-middleware
Commits
9df11918
Commit
9df11918
authored
3 weeks ago
by
Alexander Kaschta
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Imports
parent
229062e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#419416
passed
3 weeks ago
Stage: lint
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/bcd_request.py
+2
-2
2 additions, 2 deletions
api/bcd_request.py
with
2 additions
and
2 deletions
api/bcd_request.py
+
2
−
2
View file @
9df11918
from
fastapi
import
APIRouter
,
Depends
,
HTTPException
from
starlette
import
status
from
api
import
db
,
get_conn
from
api
import
get_conn
from
model.bcd_request
import
BCDRequestModel
,
BCDProtectionRequirements
,
BCDSystemType
,
IPAddressVersion
from
model.wapi.cntl
import
APIToken
,
Mgr
from
util.auth
import
check_auth
...
...
@@ -16,7 +16,7 @@ js_mods = ['bcdrequest']
@router.post
(
''
)
async
def
handle_request
(
bcd_request
:
BCDRequestModel
,
token
:
APIToken
=
Depends
(
check_auth
),
conn
=
Depends
(
get_conn
)):
user
=
Mgr
.
check_token
(
conn
,
token
)
Mgr
.
check_token
(
conn
,
token
)
ou_request
=
execute_wapi_function
(
conn
,
[
{
"
idx
"
:
"
own_mgr2ou_list
"
,
"
name
"
:
"
cntl.mgr2ou.list
"
,
"
old
"
:
{
"
is_own
"
:
True
}},
...
...
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