Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
7191c519
Verified
Commit
7191c519
authored
Sep 25, 2021
by
Andrey Vertiprahov
Browse files
Arista.EOS. Support 40G breakout (4x10 DAC and AOC)
parent
61f8f933
Pipeline
#33587
passed with stages
in 25 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sa/profiles/Arista/EOS/get_interface_status.py
View file @
7191c519
...
...
@@ -18,14 +18,14 @@ class Script(BaseScript):
interface
=
IGetInterfaceStatus
rx_interface_status
=
re
.
compile
(
r
"^(?P<interface>\S\S\d+).+?"
r
"(?P<status>connected|notconnect)"
r
"^(?P<interface>\S\S
[\/
\d
]
+).+?"
r
"(?P<status>connected|notconnect)"
)
def
execute
(
self
,
interface
=
None
):
r
=
[]
v
=
self
.
cli
(
"show interfaces status"
)
for
l
in
v
.
splitlines
():
match
=
self
.
rx_interface_status
.
match
(
l
)
for
l
ine
in
v
.
splitlines
():
match
=
self
.
rx_interface_status
.
match
(
l
ine
)
if
match
:
r
+=
[
{
...
...
sa/profiles/Arista/EOS/profile.py
View file @
7191c519
...
...
@@ -25,7 +25,7 @@ class Profile(BaseProfile):
command_disable_pager
=
"terminal length 0"
convert_mac
=
BaseProfile
.
convert_mac_to_cisco
rx_interface_name
=
re
.
compile
(
r
"^(?P<type>\S+?)(?P<number>\d+)$"
)
rx_interface_name
=
re
.
compile
(
r
"^(?P<type>\S+?)(?P<number>
[\/
\d
]
+)$"
)
def
convert_interface_name
(
self
,
s
):
match
=
self
.
rx_interface_name
.
match
(
s
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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