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
cc0b16bc
Commit
cc0b16bc
authored
2 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
rolled back some testing code, accidentally comitted
parent
5dd7444a
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/db/ims_data.py
+1
-1
1 addition, 1 deletion
inventory_provider/db/ims_data.py
inventory_provider/tasks/worker.py
+7
-2
7 additions, 2 deletions
inventory_provider/tasks/worker.py
with
8 additions
and
3 deletions
inventory_provider/db/ims_data.py
+
1
−
1
View file @
cc0b16bc
...
@@ -170,7 +170,7 @@ def get_port_id_services(ds: IMS):
...
@@ -170,7 +170,7 @@ def get_port_id_services(ds: IMS):
c
[
'
circuit_type
'
]
=
_get_circuit_type
(
c
)
c
[
'
circuit_type
'
]
=
_get_circuit_type
(
c
)
yield
c
yield
c
circuits
=
list
(
_get_circuits
()
)
circuits
=
_get_circuits
()
# order of preference
# order of preference
# internalports (first and last sequencenumbers)
# internalports (first and last sequencenumbers)
...
...
This diff is collapsed.
Click to expand it.
inventory_provider/tasks/worker.py
+
7
−
2
View file @
cc0b16bc
...
@@ -730,7 +730,14 @@ def extract_ims_data():
...
@@ -730,7 +730,14 @@ def extract_ims_data():
def
_extract_ims_data
(
ims_api_url
,
ims_username
,
ims_password
):
def
_extract_ims_data
(
ims_api_url
,
ims_username
,
ims_password
):
"""
convenient entry point for testing ...
:param ims_api_url:
:param ims_username:
:param ims_password:
:return:
"""
def
_ds
()
->
IMS
:
def
_ds
()
->
IMS
:
return
IMS
(
ims_api_url
,
ims_username
,
ims_password
)
return
IMS
(
ims_api_url
,
ims_username
,
ims_password
)
...
@@ -1068,8 +1075,6 @@ def transform_ims_data(data):
...
@@ -1068,8 +1075,6 @@ def transform_ims_data(data):
if
sid_info
not
in
sid_services
[
sid
]:
if
sid_info
not
in
sid_services
[
sid
]:
sid_services
[
sid
].
append
(
sid_info
)
sid_services
[
sid
].
append
(
sid_info
)
if
k
.
startswith
(
'
MX1.LON.UK:XE-1/0/0
'
):
print
(
'
here
'
)
interface_services
[
k
].
extend
(
circuits
)
interface_services
[
k
].
extend
(
circuits
)
return
{
return
{
...
...
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