Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inventory-provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
geant-swd
dashboardv3
inventory-provider
Commits
771438b1
Commit
771438b1
authored
4 years ago
by
Robert Latta
Browse files
Options
Downloads
Patches
Plain Diff
non-functional change
parent
dd0fc882
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory_provider/routes/testing.py
+1
-0
1 addition, 0 deletions
inventory_provider/routes/testing.py
inventory_provider/tasks/ims_worker.py
+2
-3
2 additions, 3 deletions
inventory_provider/tasks/ims_worker.py
with
3 additions
and
3 deletions
inventory_provider/routes/testing.py
+
1
−
0
View file @
771438b1
...
...
@@ -26,6 +26,7 @@ def update_interfaces_to_services_ims():
ims_worker
.
update_interfaces_to_services_ims
.
delay
(
use_current
=
True
)
return
Response
(
'
OK
'
)
@routes.route
(
"
update-circuit-hierarchy-ims
"
,
methods
=
[
'
GET
'
,
'
POST
'
])
def
update_circuit_hierarchy_ims
():
ims_worker
.
update_circuit_hierarchy_ims
.
delay
(
use_current
=
True
)
...
...
This diff is collapsed.
Click to expand it.
inventory_provider/tasks/ims_worker.py
+
2
−
3
View file @
771438b1
...
...
@@ -32,11 +32,10 @@ def update_interfaces_to_services_ims(self, use_current=False):
ds
=
IMS
(
c
[
'
api
'
],
c
[
'
username
'
],
c
[
'
password
'
])
for
service
in
ims_data
.
get_interface_services
(
ds
):
equipment_interface
=
'
%s:%s
'
%
(
service
[
'
equipment
'
],
service
[
'
interface_name
'
])
equipment_interface
=
\
f
'
{
service
[
"
equipment
"
]
}
:
{
service
[
"
interface_name
"
]
}
'
interface_services
[
equipment_interface
].
append
(
service
)
if
use_current
:
r
=
get_current_redis
(
InventoryTask
.
config
)
# scan with bigger batches, to mitigate network latency effects
...
...
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