Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Resource Manager
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
Resource Manager
Commits
228db6d8
Commit
228db6d8
authored
2 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
2cd5d918
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resource_management/hardware/juniper.py
+3
-3
3 additions, 3 deletions
resource_management/hardware/juniper.py
test/test_parse_router.py
+3
-4
3 additions, 4 deletions
test/test_parse_router.py
with
6 additions
and
7 deletions
resource_management/hardware/juniper.py
+
3
−
3
View file @
228db6d8
...
@@ -293,7 +293,7 @@ def _load_pic_connected_ports(
...
@@ -293,7 +293,7 @@ def _load_pic_connected_ports(
yield
_p
yield
_p
def
_
load_aggregates
(
router
:
'
jnpr.junos.Device
'
):
def
load_aggregates
(
router
:
'
jnpr.junos.Device
'
):
"""
"""
computes 802.3ad lag bundles
computes 802.3ad lag bundles
...
@@ -336,7 +336,7 @@ def _load_aggregates(router: 'jnpr.junos.Device'):
...
@@ -336,7 +336,7 @@ def _load_aggregates(router: 'jnpr.junos.Device'):
return
bundles
return
bundles
def
_
load_logical_interfaces
(
router
:
'
jnpr.junos.Device
'
):
def
load_logical_interfaces
(
router
:
'
jnpr.junos.Device
'
):
"""
"""
loads logical interfaces
loads logical interfaces
...
@@ -376,7 +376,7 @@ def _load_logical_interfaces(router: 'jnpr.junos.Device'):
...
@@ -376,7 +376,7 @@ def _load_logical_interfaces(router: 'jnpr.junos.Device'):
return
interfaces
return
interfaces
def
_
load_installed_ethernet_ports
(
router
:
'
jnpr.junos.Device
'
):
def
load_installed_ethernet_ports
(
router
:
'
jnpr.junos.Device
'
):
"""
"""
can
'
t just use jnpr.junos.op.ethport.EthPortTable
can
'
t just use jnpr.junos.op.ethport.EthPortTable
...
...
This diff is collapsed.
Click to expand it.
test/test_parse_router.py
+
3
−
4
View file @
228db6d8
...
@@ -67,10 +67,9 @@ def test_new_load_interfaces(mocked_router, netconf_rpc_replies):
...
@@ -67,10 +67,9 @@ def test_new_load_interfaces(mocked_router, netconf_rpc_replies):
# print(len(config))
# print(len(config))
# just sanity check there are non-empty responses
# just sanity check there are non-empty responses
physical
=
list
(
juniper
.
_
load_installed_ethernet_ports
(
dev
))
physical
=
list
(
juniper
.
load_installed_ethernet_ports
(
dev
))
assert
physical
assert
physical
logical
=
juniper
.
_
load_logical_interfaces
(
dev
)
logical
=
juniper
.
load_logical_interfaces
(
dev
)
assert
logical
assert
logical
aggregates
=
juniper
.
_
load_aggregates
(
dev
)
aggregates
=
juniper
.
load_aggregates
(
dev
)
assert
aggregates
assert
aggregates
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