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
2be385b1
Commit
2be385b1
authored
4 years ago
by
Robert Latta
Browse files
Options
Downloads
Patches
Plain Diff
flake8
parent
52f0c20f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
inventory_provider/db/ims.py
+0
-2
0 additions, 2 deletions
inventory_provider/db/ims.py
inventory_provider/db/ims_data.py
+4
-5
4 additions, 5 deletions
inventory_provider/db/ims_data.py
inventory_provider/tasks/ims_worker.py
+0
-5
0 additions, 5 deletions
inventory_provider/tasks/ims_worker.py
with
4 additions
and
12 deletions
inventory_provider/db/ims.py
+
0
−
2
View file @
2be385b1
...
...
@@ -244,5 +244,3 @@ if __name__ == '__main__':
sys
.
argv
[
5
]
if
len
(
sys
.
argv
)
>
5
else
None
)
print
(
json
.
dumps
(
i
,
indent
=
4
,
sort_keys
=
True
))
This diff is collapsed.
Click to expand it.
inventory_provider/db/ims_data.py
+
4
−
5
View file @
2be385b1
import
re
from
collections
import
OrderedDict
from
inventory_provider.db
import
ims
from
inventory_provider.db.ims
import
IMS
,
InventoryStatus
,
RelateType
from
inventory_provider.db.ims
import
InventoryStatus
INTERNAL_POP_NAMES
=
{
'
Cambridge OC
'
,
...
...
@@ -59,9 +58,9 @@ def lookup_lg_routers(ds):
eq
=
{
'
equipment name
'
:
node
[
'
Name
'
],
'
type
'
:
'
INTERNAL
'
if
site
[
'
Name
'
]
in
INTERNAL_POP_NAMES
else
'
CORE
'
,
'
INTERNAL
'
if
site
[
'
Name
'
]
in
INTERNAL_POP_NAMES
else
'
CORE
'
,
'
pop
'
:
{
'
name
'
:
site
[
'
Name
'
],
'
city
'
:
city
[
'
Name
'
],
...
...
This diff is collapsed.
Click to expand it.
inventory_provider/tasks/ims_worker.py
+
0
−
5
View file @
2be385b1
import
csv
import
json
import
logging
import
subprocess
import
tempfile
from
datetime
import
datetime
from
pathlib
import
Path
from
inventory_provider.db
import
ims_data
from
inventory_provider.db.ims
import
IMS
...
...
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