Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
c6c71459
Verified
Commit
c6c71459
authored
Aug 22, 2022
by
Andrey Vertiprahov
Browse files
ZTE.ZXDSL98xx.get_inventory. Fix fill_ports method use from profile.
parent
5d1af19c
Pipeline
#37301
passed with stages
in 26 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/ZTE/ZXDSL98xx/get_interfaces.py
View file @
c6c71459
...
...
@@ -191,6 +191,10 @@ class Script(BaseScript):
"type"
:
"physical"
,
"admin_status"
:
match
.
group
(
"admin_status"
)
==
"enable"
,
"oper_status"
:
match
.
group
(
"oper_status"
)
==
"up"
,
"hints"
:
[
"noc::topology::direction::nni"
,
"technology::ethernet::1000base"
,
],
"subinterfaces"
:
[
{
"name"
:
ifname
,
...
...
@@ -209,6 +213,7 @@ class Script(BaseScript):
"type"
:
"physical"
,
"admin_status"
:
match
.
group
(
"admin_status"
)
==
"enable"
,
"oper_status"
:
match
.
group
(
"oper_status"
)
==
"up"
,
"hints"
:
[
"technology::dsl::adsl"
],
"subinterfaces"
:
[],
}
v
=
self
.
cli
(
"show atm pvc interface %s"
%
ifname
)
...
...
@@ -290,6 +295,10 @@ class Script(BaseScript):
"name"
:
ifname
,
"type"
:
"physical"
,
"admin_status"
:
admin_status
,
"hints"
:
[
"noc::topology::direction::nni"
,
"technology::ethernet::1000base"
,
],
"oper_status"
:
oper_status
,
"subinterfaces"
:
[
{
...
...
@@ -323,6 +332,7 @@ class Script(BaseScript):
"type"
:
"physical"
,
"admin_status"
:
admin_status
,
"oper_status"
:
oper_status
,
"hints"
:
[
"technology::dsl::adsl"
],
"subinterfaces"
:
[],
}
v
=
self
.
cli
(
"show atm vc %s"
%
ifname
)
...
...
sa/profiles/ZTE/ZXDSL98xx/get_inventory.py
View file @
c6c71459
...
...
@@ -91,9 +91,9 @@ class Script(BaseScript):
r
[
0
][
"sensors"
]
=
sensors
return
r
def
fill_ports
(
self
,
script
):
def
fill_ports
(
self
):
r
=
[]
v
=
s
cript
.
cli
(
"show card"
)
v
=
s
elf
.
cli
(
"show card"
)
for
line
in
v
.
splitlines
():
match
=
self
.
rx_card
.
search
(
line
)
if
match
:
...
...
@@ -102,7 +102,7 @@ class Script(BaseScript):
def
execute_cli
(
self
):
r
=
self
.
get_inv_from_version
()
ports
=
self
.
profile
.
fill_ports
(
self
)
ports
=
self
.
fill_ports
()
for
p
in
ports
:
i
=
{
"type"
:
self
.
type
[
p
[
"cfgtype"
]],
...
...
Andrey Vertiprahov
@aversant
mentioned in commit
688c7ce1
·
Aug 22, 2022
mentioned in commit
688c7ce1
mentioned in commit 688c7ce157198e8fbedba2af7fe714f37c1c8d14
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!6603 (merged)
·
Aug 22, 2022
mentioned in merge request
!6603 (merged)
mentioned in merge request !6603
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment